Browse Source

Make sure to shutdown receive socket when client has closed.

drieseng 5 năm trước cách đây
mục cha
commit
2c1a4d9596
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/Renci.SshNet.Tests/Common/AsyncSocketListener.cs

+ 2 - 0
src/Renci.SshNet.Tests/Common/AsyncSocketListener.cs

@@ -127,6 +127,8 @@ namespace Renci.SshNet.Tests.Common
             else
             {
                 SignalDisconnected(handler);
+                handler.Shutdown(SocketShutdown.Both);
+                handler.Close();
             }
         }