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
Terminal 1: run snakepipe gamestate|snakepipe render-browser
Terminal 2: run snakepipe gamestate|snakepipe render-browser
In terminal 2, you get the error:
Error: port 8080 already in use
thread 'main' panicked at library/std/src/io/stdio.rs:1021:9:
failed printing to stdout: Broken pipe (os error 32)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Because
the port 8080 is already in use (normal)
Since snakepipe render-browser exit, its stdin doesn't exist anymore, so snakepipe gamestate can't write to it via its stdout
Reproduce:
Terminal 1: run
snakepipe gamestate|snakepipe render-browser
Terminal 2: run
snakepipe gamestate|snakepipe render-browser
In terminal 2, you get the error:
Because
snakepipe render-browser
exit, itsstdin
doesn't exist anymore, sosnakepipe gamestate
can't write to it via itsstdout
Maybe rely on https://crates.io/crates/calm_io
It might be a solution for #25
Example of use:
The text was updated successfully, but these errors were encountered: