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
After first writeOrBuffer() state.writing remains true all the time #56
Comments
Not sure, but it seems there is a mess with the different versions of the Writable class of the readable-stream packages in duplexify and through2. |
Hmmm weird. I can confirm the bug. Not sure what is causing it either... On Sun, Jan 11, 2015 at 7:33 PM, Michael Heuberger <notifications@github.com
|
Right @maxogden ... any chance you could look into this and fix it pretty soon? It's breaking www.videomail.io :( |
can't make any promises, for now I would recommend downgrading On Sun, Jan 11, 2015 at 7:43 PM, Michael Heuberger <notifications@github.com
|
I already tried to downgrade to v1.1 - no success |
Forget my above comment, I double-checked, downgrading to v1.1 worked (had to fix an npm cache issue beforehand). Then I verified that, when upgrading to v1.2, the bug is back! So the bug must have been introduced between the versions 1.1 and 1.2 |
Sorry about that, I'll look into it asap: I definitely screw something up. Does this happen in the Browser, right?
|
Great thanks. Yeah, happens in the browser (I am using it for www.videomail.io) ... If you have eliminated the bug, please add a test case for that, thx! |
Can you please check if the just-released 1.3.0 fixes it? It might.
|
Nope, v1.3 still has the bug. I already tested with v1.3 hours before. Bug is still here. |
Same here. I'm using websocket-stream as a transport for a voxel-server/voxel-client and it fails transmitting anything from the client past the first packet with 1.2.0/1.3.0 in chrome 39.0.2171.95 m. Curiously, writes from the node server to the client seem to happen just fine. Downgrading to 1.1.x is working fine. |
Do not use backpressure in browsers. Fixes #56.
The fix is released as 1.3.1. |
@mcollina Grazie mille! |
This is a tricky problem and I cannot locate the bug. Somehow, after upgrading to
"websocket-stream": "^1.3.0"
, my client can write only once and then nothing happens.After some debugging I found out that
state.writing
is always true after the first write operation. This in writeOrBuffer() of./node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/lib/_stream_writable.js
In other words, after the first write operation, everything else is pushed in the buffer and nothing happens. Any clues?
The text was updated successfully, but these errors were encountered: