Sfoglia il codice sorgente

Make sure to shutdown receive socket when client has closed.

drieseng 5 anni fa
parent
commit
2c1a4d9596
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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();
             }
         }