mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 00:40:30 -05:00
✨ Ignore EOF errors on writting streamed response
This commit is contained in:
parent
3dd94bd362
commit
3461ec2281
1 changed files with 3 additions and 0 deletions
|
@ -90,6 +90,9 @@
|
||||||
(with-open [bos (buffered-output-stream output-stream buffer-size)]
|
(with-open [bos (buffered-output-stream output-stream buffer-size)]
|
||||||
(let [tw (t/writer bos opts)]
|
(let [tw (t/writer bos opts)]
|
||||||
(t/write! tw data)))
|
(t/write! tw data)))
|
||||||
|
(catch org.eclipse.jetty.io.EofException _cause
|
||||||
|
;; Do nothing, EOF means client closes connection abruptly
|
||||||
|
nil)
|
||||||
(catch Throwable cause
|
(catch Throwable cause
|
||||||
(l/warn :hint "unexpected error on encoding response"
|
(l/warn :hint "unexpected error on encoding response"
|
||||||
:cause cause))))))
|
:cause cause))))))
|
||||||
|
|
Loading…
Reference in a new issue