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

list argument must be an Array of Buffers #520

Closed
peacemakr opened this issue Dec 15, 2016 · 4 comments
Closed

list argument must be an Array of Buffers #520

peacemakr opened this issue Dec 15, 2016 · 4 comments

Comments

@peacemakr
Copy link

Version:
6.0.7

Environment:

  • Operating system:
    Mac OSX
  • Browser:
    Chrome
  • Node.js:
    5.12.0
    Expected result:
    server should not crash
    Actual result:
    server is crashing with the following message
TypeError: list argument must be an Array of Buffers
    at Function.Buffer.concat (buffer.js:330:13)
    at IncomingMessage.onData (/test5/node_modules/engine.io/lib/transports/polling.js:161:23)
    at emitOne (events.js:90:13)
    at IncomingMessage.emit (events.js:182:7)
    at IncomingMessage.Readable.read (_stream_readable.js:368:10)
    at flow (_stream_readable.js:751:26)
    at resume_ (_stream_readable.js:731:3)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)

Steps to reproduce:
Not sure what kind of input is causing that to happen... however this appears to be related to Engine.io not validating inputs etc

@lpinca
Copy link
Member

lpinca commented Dec 15, 2016

I guess either chunks or data is not a buffer in this array.

Sounds like an external issue though.

@peacemakr
Copy link
Author

it works normally in most cases, in fact it only occurred once to me

in any case, the code should be protected

@lpinca
Copy link
Member

lpinca commented Dec 15, 2016

I vaguely remember a similar issue socketio/engine.io#305.

@lpinca
Copy link
Member

lpinca commented Sep 2, 2017

This should have been fixed in engine.io@3.1.1. Please reopen if it's not the case.

@lpinca lpinca closed this as completed Sep 2, 2017
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