diff --git a/src/TouchSocket/Components/Core/TcpCore.cs b/src/TouchSocket/Components/Core/TcpCore.cs index aebff800c..1b627cd97 100644 --- a/src/TouchSocket/Components/Core/TcpCore.cs +++ b/src/TouchSocket/Components/Core/TcpCore.cs @@ -420,7 +420,7 @@ internal sealed class TcpCore : DisposableObject var offset = 0; while (length > 0 && !this.m_cancellationToken.IsCancellationRequested) { - var result = await this.m_socketSender.SendAsync(this.m_socket, memory).ConfigureAwait(EasyTask.ContinueOnCapturedContext); + var result = await this.m_socketSender.SendAsync(this.m_socket, memory[offset..]).ConfigureAwait(EasyTask.ContinueOnCapturedContext); if (result.SocketError != null) { throw result.SocketError;