Catch error.BrokenPipe and close connection

Users have reported this error occurring occasionally, close connection
and continue processing requests when it occurs.
This commit is contained in:
Bob Farrell 2024-04-29 18:58:07 +01:00
parent ca153eb82c
commit 3c88d845a8

View File

@ -312,6 +312,7 @@ fn isBadHttpError(err: anyerror) bool {
error.MissingFinalNewline,
error.HttpConnectionClosing,
error.ConnectionResetByPeer,
error.BrokenPipe,
=> true,
else => false,
};