Correctly close chunked backchannel by sending zero length data.

This commit is contained in:
Alexander K. Hudek 2014-04-04 21:19:52 -04:00
parent 6b83c2ae36
commit a168be7336

View file

@ -30,6 +30,9 @@
(when (.checkError (.getWriter (.getServletResponse continuation)))
(throw async-adapter/ConnectionClosedException)))
(close [this]
(doto (.getWriter (.getServletResponse continuation))
(.write "")
(.flush))
(.complete continuation)))
(defn- add-ssl-connector!