mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-15 06:26:07 +00:00
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:
parent
ca153eb82c
commit
3c88d845a8
@ -312,6 +312,7 @@ fn isBadHttpError(err: anyerror) bool {
|
|||||||
error.MissingFinalNewline,
|
error.MissingFinalNewline,
|
||||||
error.HttpConnectionClosing,
|
error.HttpConnectionClosing,
|
||||||
error.ConnectionResetByPeer,
|
error.ConnectionResetByPeer,
|
||||||
|
error.BrokenPipe,
|
||||||
=> true,
|
=> true,
|
||||||
else => false,
|
else => false,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user