mscdex / socksv5

SOCKS protocol version 5 server and client implementations for node.js
MIT License
400 stars 121 forks source link

Stream consumed by accident #33

Open mmis1000 opened 6 years ago

mmis1000 commented 6 years ago

https://github.com/mscdex/socksv5/blob/4577d30a72935c3f0946c46a97dbe033ca7bb701/lib/server.js#L114

The accept function called Readable#resume .
And cause the the remaining chunk in stream to be flushed without properly handling.