[jetty-dev] [jira] (JETTY-1463) WebSockets with Safari gets messages stuck as if in a buffer that needs to be flushed.
"Jan Bartel (JIRA)" <[email protected]>
| Newsgroups | gmane.comp.java.jetty.general |
|---|---|
| Message-ID | <1096047881.56232.1332391443123.JavaMail.j2ee-jira@codehaus01.managed.contegix.com> |
[ https://jira.codehaus.org/browse/JETTY-1463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Bartel reassigned JETTY-1463:
---------------------------------
Assignee: Greg Wilkins (was: Thomas Becker)
Greg, you were the last to look at this issue, is it fixed?
thanks
Jan
> WebSockets with Safari gets messages stuck as if in a buffer that needs to be flushed.
> --------------------------------------------------------------------------------------
>
> Key: JETTY-1463
> URL: https://jira.codehaus.org/browse/JETTY-1463
> Project: Jetty
> Issue Type: Bug
> Components: NIO
> Affects Versions: 8.0.1
> Reporter: Andrew Lee
> Assignee: Greg Wilkins
> Attachments: websocket-safari-to-jetty.pcap
>
>
> When using Safari, sending several messages through a websocket will lead to some of them not getting through right away. The last few messages often don't arrive until another message is sent later through the websocket to flush them out.
> To reproduce, put this in Safari's debug console:
> var x = new WebSocket('ws://localhost:8080/conn/')
> for(i in [1, 2, 3, 4, 5]) x.send('x')
> If you put a breakpoint in the onMessage method of your WebSocket.OnTextMessage handler, it will only get triggered twice, when it should have been triggered 5 times.
> If in Safari you then type:
> x.send('x')
> The remaining messages will all come through and trigger the breakpoint another 4 times.
> A look at WireShark suggests that Safari is in fact sending the messages, but for whatever reason they aren't propagating up into the WebSocket servlet. I traced the bug into the code and discovered that even if I put a breakpoint at SelectChannelEndPoint.schedule, it still wasn't being called for the missing messages, so it must be somewhere even farther down than that.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email