0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -05:00

Ignore EOF errors on writting streamed response

This commit is contained in:
Andrey Antukh 2022-02-02 23:50:43 +01:00 committed by Alonso Torres
parent 3dd94bd362
commit 3461ec2281

View file

@ -90,6 +90,9 @@
(with-open [bos (buffered-output-stream output-stream buffer-size)]
(let [tw (t/writer bos opts)]
(t/write! tw data)))
(catch org.eclipse.jetty.io.EofException _cause
;; Do nothing, EOF means client closes connection abruptly
nil)
(catch Throwable cause
(l/warn :hint "unexpected error on encoding response"
:cause cause))))))