| Summary: | Idles timeout too fast (WebSocket Message: Idle for 5190ms > 300000ms) | ||
|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | jfarcand <jfarcand> |
| Component: | websocket | Assignee: | Greg Wilkins <gregw> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jetty-inbox, tbecker |
| Version: | unspecified | ||
| Target Milestone: | 7.5.x | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
jfarcand
After a first glimpse at the code this shouldn't be possible. Will try to reproduce that case in a unit test. Thom, I see those under heavy load it that can help. I do see strange CPU spike as well
https://gist.github.com/1501666
and
https://gist.github.com/1501668
will try with the latest SNAPSHOT to see if that help.
thomas, I think this issue was due to the fact that the Idle for message was wrongly calculated. The idletimestamp is reset before the onIdleExpired callback, so the calculation of idle time was wrong. In this case, the connection had probably been idle for 305190ms. The heavy load explains why it took 5s to get around to doing the callback. We now pass the idle time into the call back so the reporting should be correct So I believe this is resolved. JFA - can you confirm/deny when you get a chance to try RC2 (or a recent snapshot). You should not see messages like this. Please reopen if you do. |