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

Error is not caught if WebSocket constructor throws SecurityException #362

Closed
kompa3 opened this issue Dec 17, 2014 · 1 comment
Closed

Comments

@kompa3
Copy link

kompa3 commented Dec 17, 2014

Steps to reproduce:

  • Node.JS application with socket.io version 1.2.1
  • Run the frontend inside WebBrowser component
  • Hit F5 six times
  • Expected behavior: error event is raised
  • Actual behavior: Uncaught SecurityError error

Something of the background:

  • By default, WebBrowser allows a maximum of five concurrent WebSocket sessions to the same server
  • WebBrowser also has a "feature" that it does not actually delete a page when F5 is hit. Instead, the page reloads, the reloaded page initializes itself while the old page still keeps running in the background. In particular, the WebSocket communication in the background still keeps TCP connections open.
  • As a result, the sixth WebSocket() constructor call throws SecurityException error that remains uncaught
kompa3 pushed a commit to kompa3/engine.io-client that referenced this issue Dec 17, 2014
@darrachequesne
Copy link
Member

Closed by #475

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