Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tomcat] Tomcat call onClose several time when it fail to detect the connection is down #1645

Closed
jfarcand opened this issue Jun 24, 2014 · 0 comments
Labels

Comments

@jfarcand
Copy link
Member

If Tomcat fails to detect the connection is closed, it will call onClose when trying to write a websocket message:

    at org.apache.catalina.websocket.StreamInbound.doOnClose(StreamInbound.java:226)
    at org.apache.catalina.websocket.WsOutbound.writeTextMessage(WsOutbound.java:229)
    at org.atmosphere.container.version.TomcatWebSocket.write(TomcatWebSocket.java:57)
    at org.atmosphere.websocket.WebSocket.write(WebSocket.java:222)

It may call it AGAIN if another message is trying to be written concurrently, causing Atmosphere to invoke the DefaultWebSocketProcessor.close several time causing all king of pollution in the logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant