https://bz.apache.org/bugzilla/show_bug.cgi?id=58835
Mark Thomas <ma...@apache.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED --- Comment #1 from Mark Thomas <ma...@apache.org> --- (In reply to Cristian from comment #0) > When the container shutdowns , it commands directly to close all the > sockets. No it doesn't. It flushes any buffered WebSocket messages, sends a WebSocket close message and then closes the socket. > You might add a handler before to do it The ServletAPI has provided the ServletContextListener since Servlet 2.3. > The solution for me is simply to flush messages enqueued before to close and > add a callback onShutdown .... Which is exactly what is already implemented. I've added a unit test that confirms this. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org