SSE / Long poll errors

Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

SSE / Long poll errors

I can’t get Tomcat 8.5.20 to detect when a javascript eventSource has closed.  (Server Sent Event Listener).

This results in a Broken Pipe error, when writing to the servletResponse in Tomcat.

I put a simple demonstration of the problem here.

Run in tomcat, and reload the page, or click the start button

Clicking the stop button *always* results in a broken pipe error on the tomcat side.  I can’t see how I can prevent this.