You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module is sweet! I cant believe it does all of that in so few lines of code
@feross and I just tried streaming a one-hour-long mp3 using webcat.
The first issue we ran into is that webcat doesn't support binary data. Maybe it's interpreting the input as ascii or UTF8? Either way, I had to pipe thru base64 before sending it thru webcat.
With that workaround, it works for a few minutes before it dies. I think what's going on is that there isn't any backpressure, so the receiving webcat process buffers a lot of data. Once the whole (~150MB) file is sent, the sending webcat process closes the connection & exits. The receiving process sees the connection died and exits as well, even though it still has lots of data that needs to be flushed to stdout.
With the following fixes, I think it would work
Flush stdout before exiting (most important)
Handle binary input
Implement back pressure
The text was updated successfully, but these errors were encountered:
This module is sweet! I cant believe it does all of that in so few lines of code
@feross and I just tried streaming a one-hour-long mp3 using webcat.
The first issue we ran into is that webcat doesn't support binary data. Maybe it's interpreting the input as ascii or UTF8? Either way, I had to pipe thru
base64
before sending it thru webcat.With that workaround, it works for a few minutes before it dies. I think what's going on is that there isn't any backpressure, so the receiving
webcat
process buffers a lot of data. Once the whole (~150MB) file is sent, the sendingwebcat
process closes the connection & exits. The receiving process sees the connection died and exits as well, even though it still has lots of data that needs to be flushed to stdout.With the following fixes, I think it would work
The text was updated successfully, but these errors were encountered: