Describe the bug
When HTTP request in canceled on client side, write in progress may fail with broken pipe error.
GZIP middleware propagates this error using panic.
To Reproduce
Open a browser page that makes many http requests to your server and close the window before the page is fully loaded.
Describe the bug When HTTP request in canceled on client side, write in progress may fail with
broken pipe
error. GZIP middleware propagates this error usingpanic
.To Reproduce Open a browser page that makes many http requests to your server and close the window before the page is fully loaded.
Expected behavior Probably such an error should be silently "swallowed", as there is nothing you can do with client resets.