Skip to content

Commit

Permalink
added log for unexpected listener closure
Browse files Browse the repository at this point in the history
  • Loading branch information
kerryjiang committed Dec 27, 2024
1 parent f4a12a1 commit 31579a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SuperSocket.Server/Connection/TcpConnectionListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ private async Task KeepAccept(Socket listenSocket)
//The listen socket was closed
if (errorCode == 125 || errorCode == 89 || errorCode == 995 || errorCode == 10004 || errorCode == 10038)
{
_logger.LogCritical(se, $"The listener[{this.ToString()}] was closed for the socket error: {errorCode}.");
break;
}
}
Expand Down

0 comments on commit 31579a1

Please sign in to comment.