Skip to content

Commit

Permalink
downgrade listener cancelled exception to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kerryjiang committed Jan 25, 2025
1 parent 6e40994 commit e313305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SuperSocket.Server/Connection/TcpConnectionListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private async Task KeepAccept(Socket listenSocket)
|| errorCode == 995 // System.Net.Sockets.SocketException (995): The I/O operation has been aborted because of either a thread exit or an application request
|| errorCode == 10004) // System.Net.Sockets.SocketException (10004): A blocking Socket call was canceled.
{
_logger.LogWarning(se, $"The listener[{this.ToString()}] was closed for the socket error: {errorCode}.");
_logger.LogDebug($"The listener[{this.ToString()}] was closed for the socket error: {errorCode}. {se.Message}");
break;
}
}
Expand Down

0 comments on commit e313305

Please sign in to comment.