Skip to content

Commit

Permalink
fixed bug on debian (#13)
Browse files Browse the repository at this point in the history
call socket.Shutdown(SocketShutdown.Both) to prevent hang on socket.Accept

Co-authored-by: Дмитрий Агеев <[email protected]>
  • Loading branch information
eroke and Дмитрий Агеев authored Oct 3, 2020
1 parent 101d808 commit 6dc83b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib60870/CS104/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,7 @@ public void Stop()

try
{
listeningSocket.Shutdown(SocketShutdown.Both);
listeningSocket.Close();

// close all open connection
Expand Down

0 comments on commit 6dc83b7

Please sign in to comment.