Skip to content

Commit 2c1a4d9

Browse files
committed
Make sure to shutdown receive socket when client has closed.
1 parent 59d908d commit 2c1a4d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Renci.SshNet.Tests/Common/AsyncSocketListener.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ private void ReadCallback(IAsyncResult ar)
127127
else
128128
{
129129
SignalDisconnected(handler);
130+
handler.Shutdown(SocketShutdown.Both);
131+
handler.Close();
130132
}
131133
}
132134

0 commit comments

Comments
 (0)