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

abortConnection with code == null #502

Closed
1 of 2 tasks
miki131 opened this issue Apr 28, 2017 · 0 comments · Fixed by #503
Closed
1 of 2 tasks

abortConnection with code == null #502

miki131 opened this issue Apr 28, 2017 · 0 comments · Fixed by #503

Comments

@miki131
Copy link

miki131 commented Apr 28, 2017

Note: for support questions, please use one of these channels: stackoverflow or slack

You want to:

  • report a bug
  • request a feature

Current behaviour

Steps to reproduce (if the current behaviour is a bug)

io.set('origins', ''domain1.dev:*');

Then connect from another domain2.dev

Expected behaviour

According to abortConnection function 400 Bad Request exception should be thrown

Setup

  • OS:
  • browser:
  • engine.io version: 1.8.3
  • node version: v7.8.0

Other information (e.g. stacktraces, related issues, suggestions how to fix)

buffer.js:362
    throw new TypeError('"string" must be a string, Buffer, or ArrayBuffer');
    ^

TypeError: "string" must be a string, Buffer, or ArrayBuffer
    at Function.byteLength (buffer.js:362:11)
    at abortConnection (/home/app/node_modules/engine.io/lib/server.js:471:25)
    at /home/app/node_modules/engine.io/lib/server.js:326:7
    at Server.checkRequest (/home/app/node_modules/socket.io/lib/index.js:85:3)
    at Server.verify (/home/app/node_modules/engine.io/lib/server.js:151:17)
    at Server.handleUpgrade (/home/app/node_modules/engine.io/lib/server.js:323:8)
    at Server.<anonymous> (/home/app/node_modules/engine.io/lib/server.js:444:14)
    at emitThree (events.js:116:13)
    at Server.emit (events.js:197:7)
    at onParserExecuteCommon (_http_server.js:462:14)
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

Successfully merging a pull request may close this issue.

1 participant