https://bz.apache.org/bugzilla/show_bug.cgi?id=59177
Bug ID: 59177 Summary: Throw IOException each time close websocket session Product: Tomcat 7 Version: 7.0.68 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: WebSocket Assignee: dev@tomcat.apache.org Reporter: vstor...@gmail.com Created attachment 33668 --> https://bz.apache.org/bugzilla/attachment.cgi?id=33668&action=edit sample websocket app - Each time a websocket session is closed, it always throw IOException. The reason is when WSSession#onClose method is called, and it changes the state to State.CLOSING, but the WSSesssion#registerFuture fail the checking state, if the State is not OPEN, it throw exception - This bug not happen on Tomcat 7.0.63 - I have attached the sample app that use websocket, this sample is the "Echo" sample downloaded from Tomcat document page. - Steps to reproduce issue: + Deploy app and go to : http://localhost:8080/wsSample/test.html + Connect, send messsage + Disconnect --> Throw IOException in tomcat error log - I guess we should instead check State is not close instead of is OPEN in WSSesssion#registerFuture -- 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