mirror of
https://github.com/penpot/penpot.git
synced 2026-09-06 20:18:39 +00:00
✨ Ignore EOF errors on writting streamed response
This commit is contained in:
parent
1e0dacfe9b
commit
2a6ba79e9a
@ -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…
x
Reference in New Issue
Block a user