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

jquery-pubsub 0.8.6/0.9 first push seems to be incorrect #215

Closed
maxqua72 opened this issue Mar 8, 2012 · 2 comments
Closed

jquery-pubsub 0.8.6/0.9 first push seems to be incorrect #215

maxqua72 opened this issue Mar 8, 2012 · 2 comments

Comments

@maxqua72
Copy link

maxqua72 commented Mar 8, 2012

Hi,
I'm trying to use atmosphere 0.8.6 in my project but I'm having
problems with the first push: two clients subscribe when the first
pushes some data the other does not receive anything.
I moved to the atmosphere sample jquery-pubsub and I realized it
doesn't work either as I expected.
Here is the test case:

  1. client1 FF
  2. client2 IE9
  3. client1 chose the topic "pippo" and select websocket as protocol
  4. client2 chose the same topic and select websocket as well
  5. then client2 start sending a message and the message displayed on
    IE window is
    Message Received: hlkhlkjhlkjhlkjh sent using streaming but detected
    transport is streaming
    that's strange: client2 selected websocket! I guess IE9 doesn't
    support websocket.
  6. client1 does not receive anything (the callback is not called) - no
    log in the firebug console

details in
http://groups.google.com/group/atmosphere-framework/browse_thread/thread/315303bb1a90985d/43ed132aacefdb6d


I've tested also with 0.9 with the same result.
here is the log

22:38:34.572 [qtp1747306536-13] DEBUG o.a.container.JettyWebSocketUtil - WebSocket-checkOrigin request /pubsub-0.8.6/pubsub/pippo with origin http://localhost:8080
22:38:34.572 [qtp1747306536-13] DEBUG o.a.container.JettyWebSocketUtil - WebSocket-connect request /pubsub-0.8.6/pubsub/pippo with protocol null
22:38:34.572 [qtp1747306536-13] DEBUG o.a.websocket.WebSocketProcessor - Atmosphere detected WebSocket: org.atmosphere.container.version.Jetty8WebSocket
22:38:34.573 [qtp1747306536-13] DEBUG o.atmosphere.jersey.AtmosphereFilter - Linked HttpServletRequest org.atmosphere.cpr.AtmosphereRequest@29399f26 with ContainerResponse com.sun.jersey.spi.container.ContainerResponse@5ff8cef
22:38:34.574 [qtp1747306536-13] INFO o.a.samples.pubsub.EventsLogger - onSuspend(): 127.0.0.1:54274
22:38:34.574 [qtp1747306536-13] DEBUG o.a.container.JettyWebSocketUtil - Suspending response: org.atmosphere.cpr.AtmosphereResponse@4c7da1fc
22:38:34.574 [qtp1747306536-13] INFO o.a.samples.pubsub.EventsLogger - onConnect(): WebSocketEvent{message='', type=CONNECT, webSocket=org.atmosphere.container.version.Jetty8WebSocket@4c15ce9f}

@jfarcand
Copy link
Member

I cannot reproduce this issue so closing it. Please re-open in case you are still able to reproduce. Thanks a lot of your help!

@maxqua72
Copy link
Author

I'm still able to reproduce it with
atmosphere-jquery-pubsub-0.9-20120315.192116-145.war
imported in eclipse with jetty8.
FF and Chrome behaves in the same way:
I expected that chosing the transport the subscribe is done but I got the following...
23:07:04.752 [qtp1747306536-16] DEBUG o.a.container.JettyWebSocketUtil - WebSocket-checkOrigin request /pubsub-0.9-2-145/pubsub/pippo with origin http://localhost:8080
23:07:04.752 [qtp1747306536-16] DEBUG o.a.container.JettyWebSocketUtil - WebSocket-connect request /pubsub-0.9-2-145/pubsub/pippo with protocol null
23:07:04.754 [qtp1747306536-16] DEBUG o.a.websocket.WebSocketProcessor - Atmosphere detected WebSocket: org.atmosphere.container.version.Jetty8WebSocket
23:07:04.756 [qtp1747306536-16] DEBUG o.atmosphere.jersey.AtmosphereFilter - Linked HttpServletRequest org.atmosphere.cpr.AtmosphereRequest@d5589d4 with ContainerResponse com.sun.jersey.spi.container.ContainerResponse@6acbc422
23:07:04.756 [qtp1747306536-16] INFO o.a.samples.pubsub.EventsLogger - onSuspend(): 127.0.0.1:51741
23:07:04.757 [qtp1747306536-16] DEBUG o.a.container.JettyWebSocketUtil - Suspending response: org.atmosphere.cpr.AtmosphereResponse@67b9caf4
23:07:04.757 [qtp1747306536-16] INFO o.a.samples.pubsub.EventsLogger - onConnect(): WebSocketEvent{message='', type=CONNECT, webSocket=org.atmosphere.container.version.Jetty8WebSocket@56bb8e5f}
23:07:22.742 [qtp1747306536-20] INFO o.a.samples.pubsub.EventsLogger - onClose(): WebSocketEvent{message='', type=CLOSE, webSocket=org.atmosphere.container.version.Jetty8WebSocket@22e2f0e2}
23:07:22.742 [qtp1747306536-20] DEBUG o.a.websocket.WebSocketProcessor - WebSocket closed with 1000
23:07:22.743 [qtp1747306536-20] DEBUG o.a.cpr.AsynchronousProcessor - Timing out the connection for request org.atmosphere.cpr.AtmosphereRequest@6f7ef41c
23:07:22.745 [qtp1747306536-20] INFO o.a.samples.pubsub.EventsLogger - onClose(): WebSocketEvent{message='', type=CLOSE, webSocket=org.atmosphere.container.version.Jetty8WebSocket@12c26850}
23:07:22.745 [qtp1747306536-20] DEBUG o.a.websocket.WebSocketProcessor - WebSocket closed with 1000
23:07:22.745 [qtp1747306536-20] DEBUG o.a.cpr.AsynchronousProcessor - Timing out the connection for request org.atmosphere.cpr.AtmosphereRequest@23bfcec0
23:07:22.745 [qtp1747306536-20] INFO o.a.samples.pubsub.EventsLogger - onResume(): 127.0.0.1:51584
23:07:22.769 [qtp1747306536-21] DEBUG o.a.container.JettyWebSocketUtil - WebSocket-checkOrigin request /pubsub-0.9-2-145/pubsub/pippo with origin http://localhost:8080
23:07:22.769 [qtp1747306536-21] DEBUG o.a.container.JettyWebSocketUtil - WebSocket-connect request /pubsub-0.9-2-145/pubsub/pippo with protocol null
23:07:22.771 [qtp1747306536-21] DEBUG o.a.websocket.WebSocketProcessor - Atmosphere detected WebSocket: org.atmosphere.container.version.Jetty8WebSocket
23:07:22.773 [qtp1747306536-21] DEBUG o.atmosphere.jersey.AtmosphereFilter - Linked HttpServletRequest org.atmosphere.cpr.AtmosphereRequest@67a1f0d3 with ContainerResponse com.sun.jersey.spi.container.ContainerResponse@38c9e1cc
23:07:22.774 [qtp1747306536-21] INFO o.a.samples.pubsub.EventsLogger - onSuspend(): 127.0.0.1:51745
23:07:22.774 [qtp1747306536-21] DEBUG o.a.container.JettyWebSocketUtil - Suspending response: org.atmosphere.cpr.AtmosphereResponse@4e073534
23:07:22.774 [qtp1747306536-21] INFO o.a.samples.pubsub.EventsLogger - onConnect(): WebSocketEvent{message='', type=CONNECT, webSocket=org.atmosphere.container.version.Jetty8WebSocket@3b3610f1}

and FF will start receiving messages from Ch only after FF has sent the first message.
And in the opposite way round, Ch starts receiving messages from FF only after Ch has sent the first message.

Sorry, it seems I have no permission to re-open this issue....

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

No branches or pull requests

2 participants