Hi folks,
I am facing an issue with tomcat's proprietary web socket API. I have
implemented web socket server application using tomcat's proprietary APIs.
The web socket connections are getting dropped after 2-3 hours of idle. The
tomcat is not even notifying my app about this disconnection.
The exception I am seeing in tomcat's catalina logs is as below:
java.net.SocketException: Connection timed out
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:377)
at sun.security.ssl.OutputRecord.write(OutputRecord.java:363)
at
sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:830)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:801)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
at
org.apache.coyote.http11.upgrade.UpgradeBioProcessor.write(UpgradeBioProcessor.java:67)
at
org.apache.coyote.http11.upgrade.UpgradeOutbound.write(UpgradeOutbound.java:49)
at
org.apache.catalina.websocket.WsOutbound.doWriteBytes(WsOutbound.java:499)
at
org.apache.catalina.websocket.WsOutbound.doWriteText(WsOutbound.java:529)
at
org.apache.catalina.websocket.WsOutbound.writeTextMessage(WsOutbound.java:221)
Please help me in identifying the reason behind this behaviour.
Thanks,
Ganesh