tokio-rs / tokio-core

I/O primitives and event loop for async I/O in Rust
Apache License 2.0
638 stars 115 forks source link

Compress and connect examples doesn't work together #296

Closed ericho closed 6 years ago

ericho commented 6 years ago

I'm seeing a behavior trying to run the compress example, If I follow the step described in the example to use the command:

echo test | cargo run --example connect 127.0.0.1:8080 | gunzip

Then there's no response from the compress example, however if I run:

echo "something" | nc 127.0.0.1 8080 | gunzip

Then everything works fine. I was trying to debug as a learning task but I got lost. Also, i'm not sure if this is a bug or an expected behavior.

I'll appreciate any advice to debug this issue :smile:

alexcrichton commented 6 years ago

Thanks for the report, and nice catch!