Azure / DotNetty

DotNetty project – a port of netty, event-driven asynchronous network application framework
Other
4.09k stars 977 forks source link

An existing connection was forcibly closed by the remote host #449

Open wjkhappy14 opened 5 years ago

wjkhappy14 commented 5 years ago

An existing connection was forcibly closed by the remote host","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at DotNetty.Transport.Channels.Sockets.SocketChannelAsyncOperation.Validate()\r\n at DotNetty.Transport.Channels.Sockets.AbstractSocketByteChannel.SocketByteChannelUnsafe.FinishRead(SocketChannelAsyncOperation operation)","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nValidate\nDotNetty.Transport

wjkhappy14 commented 5 years ago

http://lists.jboss.org/pipermail/netty-users/2009-July/000938.html

wjkhappy14 commented 5 years ago

远程主机强迫关闭了一个现有的连接

wjkhappy14 commented 5 years ago

https://docs.microsoft.com/en-us/windows/desktop/winsock/windows-sockets-error-codes-2

wjkhappy14 commented 5 years ago

10054: Connection reset by peer.An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, the host or remote network interface is disabled, or the remote host uses a hard close (see setsockopt for more information on the SO_LINGER option on the remote socket). This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. Operations that were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET.

wjkhappy14 commented 5 years ago

https://docs.microsoft.com/zh-cn/windows/desktop/winsock/windows-sockets-start-page-2

wjkhappy14 commented 5 years ago

{DotNetty.Transport.Channels.Sockets.TcpSocketChannel.TcpSocketChannelConfig} Allocator: {DotNetty.Buffers.PooledByteBufferAllocator} AllowHalfClosure: false AutoRead: true Channel: {[id: 0x4a1492a3]} ConnectTimeout: {00:00:10} KeepAlive: false Linger: -1 MessageSizeEstimator: {DotNetty.Transport.Channels.DefaultMessageSizeEstimator} ReceiveBufferSize: 65536 RecvByteBufAllocator: {DotNetty.Transport.Channels.AdaptiveRecvByteBufAllocator} ReuseAddress: false SendBufferSize: 65536 Socket: {System.Net.Sockets.Socket} TcpNoDelay: true WriteBufferHighWaterMark: 65536 WriteBufferLowWaterMark: 32768 WriteSpinCount: 16 allocator: {DotNetty.Buffers.PooledByteBufferAllocator} allowHalfClosure: false autoRead: 1 connectTimeout: 100000000 maxBytesPerGatheringWrite: 131072 messageSizeEstimator: {DotNetty.Transport.Channels.DefaultMessageSizeEstimator} recvByteBufAllocator: {DotNetty.Transport.Channels.AdaptiveRecvByteBufAllocator} writeBufferHighWaterMark: 65536 writeBufferLowWaterMark: 32768 writeSpinCount: 16

caozhiyuan commented 5 years ago

i don't konw what you meanings ? @wjkhappy14 can you describe it?