You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using atmosphere version 1.1.0.RC1 for websockets over Tomcat and it looks like the TomcatWebsocketHandler is not handling the maxIdleTime property correctly.
From org.atmosphere.container.TomcatWebsocketHandler,
String s = framework.getAtmosphereConfig().getInitParameter(ApplicationConfig.WEBSOCKET_IDLETIME);
if (s != null) {
webSocketWriteTimeout = Integer.valueOf(1);
} else {
webSocketWriteTimeout = -1;
}
It looks like the timeout value is getting overwritten to 1 millisecond if the property is set at all. The end effect is that the connection gets dropped as soon as it is established
The text was updated successfully, but these errors were encountered:
Hey, Thanks for fixing it so promptly. But I'm confused, maven central has 1.1.0.RC1, and I don't see a tag here in git for RC1. I see you applied the fix to 1.0.x so, does that mean I have to merge your fix into RC1 ?
We are using atmosphere version 1.1.0.RC1 for websockets over Tomcat and it looks like the TomcatWebsocketHandler is not handling the maxIdleTime property correctly.
From org.atmosphere.container.TomcatWebsocketHandler,
String s = framework.getAtmosphereConfig().getInitParameter(ApplicationConfig.WEBSOCKET_IDLETIME);
if (s != null) {
webSocketWriteTimeout = Integer.valueOf(1);
} else {
webSocketWriteTimeout = -1;
}
It looks like the timeout value is getting overwritten to 1 millisecond if the property is set at all. The end effect is that the connection gets dropped as soon as it is established
The text was updated successfully, but these errors were encountered: