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

Socket.IO handshake error #691

Closed
0ip opened this issue May 5, 2012 · 3 comments
Closed

Socket.IO handshake error #691

0ip opened this issue May 5, 2012 · 3 comments

Comments

@0ip
Copy link
Member

0ip commented May 5, 2012

Pad stucks on "Loading..."
Chrome reports:

Failed to load resource: the server responded with a status of 500 /socket.io/1/?t=1336219642575

epl console:

[WARN] socket.io - handshake error Bad session / session has expired"

Reloading the pad on Chrome helps...

@Wikinaut
Copy link
Contributor

Wikinaut commented May 6, 2012

I can fully confirm your surprising observation:

  • Simply reloading the same pad on Chrome helps.
  • I opened then the pad in a new window on Firefox (and Ctrl+F5) --> the pad is visible again in Firefox too.

With these steps you can avoid the server restart.

@0ip
Copy link
Member Author

0ip commented May 6, 2012

#224 seems to be similar or even the same


@Wikinaut
Try changing line 33 in /src/node/hooks/express/socketio.js to io.set('transports', ['htmlfile', 'xhr-polling', 'jsonp-polling']);
Maybe it helps...

@Wikinaut
Copy link
Contributor

Wikinaut commented May 7, 2012

@Wikinaut Try changing line 33 in /src/node/hooks/express/socketio.js to io.set('transports', ['xhr-polling', 'jsonp-polling']); Maybe it helps...

I applied your suggested patch, but after some hours, it stopped again. ( developer branch c406d07 )

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

No branches or pull requests

2 participants