In this case, the KeepAlive value should be defined. I faced the same issue in my case but resolved it as soon as I set the time duration for the keep-alive. (SocketOptionLevel.Socket, SocketOptionName.KeepAlive, 1000).