-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Make sure SockJS works behind bad antiviruses #25
Comments
Quick update: Bug is even more interesting: on server-side, connection is considered open (it sent header handshake, etc), but client does not receive anything - headers are not sent over. Then, after server closes connection due to timeout, browser will receive all headers and any sent data and will trigger appropriate websocket callbacks, like |
I have issues reproducing that. I install "Avast Internet Security" (set the network to "Public/High risk zone", "friends list" only contains 127.x.x.x), but websockets seems to be working fine (Chrome and Firefox, port 80, 8080 and 4000). Any clues? (tested on windows xp sp2 and windows 7) (port 80 is tested against: http://sockjs.popcnt.org/example-cursors.html - with "websockets" selected) |
Surprisingly, "iframe-eventsource" and "iframe-htmlfile" seem to be not working. Interesting. |
It is quite possible they fixed their issue. I'll try to update and test again. |
Or that I did something wrong. Pusher guys also say that avast doesn't work. Btw I have avast 6.0.1367, trial. |
OK, here's what I have. Avast! Free Antivirus, 6.0.1289. iframe-xhr-polling works: When I updated to 6.0.1369, websockets worked. I think it is related to ESN Also, I checked how sockjs behaves in this case - it properly falls back to |
I can confirm this, websockets don't work with old avast (on port 80 and 8080, they do work on 4000) (btw, Download link for avast 6.0.1289) I've raised the issue on client sockjs/sockjs-client#34 for the session_id reuse thing.
Apart form that, SockJS behaves reasonably - it falls back to other transport after timeout. I'll do similar investigation for AVG. Is there anything else left for this particular bug? |
With AVG Chrome and Firefox fail miserably. Looks like AVG is mangling the websockets connection. |
Nothing else left, can be closed. SockJS behaves correctly (apart of session_id issue). |
I played a bit with AVG. The problem was in my configuration. Most importantly, AVG (similarly to AVAST) seem to block 'chunking/streaming' transports. No xhr-streaming or htmlfile working. But as opposed to AVAST, websockets seem to go through nicely. It's important to test that SockJS falls back nicely (and quickly) behind AVG. But except from blocking streaming nothing is unusual. |
@mrjoes says
http://groups.google.com/group/sockjs/browse_thread/thread/d4cf931f28e65858
that bad things can happen to websockets behind avast. We should understand the problem and make sure that SockJS behaves correctly.
Reference: https://github.com/LearnBoost/socket.io/wiki/Socket.IO-and-firewall-software
The text was updated successfully, but these errors were encountered: