Skip to content

Commit d5ae95c

Browse files
committed
It only now occurred to me that these exceptions do not actually trigger a log message, they only call ResponseExceptionHandler, which means it’s up to the server (Propeller in my case) to deal with it
1 parent 0e918bf commit d5ae95c

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

Src/HttpServer.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -494,18 +494,6 @@ private void asyncCallbackTryBlock(IAsyncResult ar, SslStream secureStream)
494494
{
495495
secureStream.EndAuthenticateAsServer(ar);
496496
}
497-
catch (IOException io) when (io.Message == "Authentication failed because the remote party has closed the transport stream.")
498-
{
499-
// Very common exception that appears to be harmless
500-
Socket.Close();
501-
return;
502-
}
503-
catch (AuthenticationException auth) when (auth.Message == "Cannot determine the frame size or a corrupted frame was received.")
504-
{
505-
// Very common exception that appears to be harmless
506-
Socket.Close();
507-
return;
508-
}
509497
catch (Exception e)
510498
{
511499
Socket.Close();

0 commit comments

Comments
 (0)