inre / rust-mq

RustMQ is the MQTT client written on pure Rust.
MIT License
190 stars 28 forks source link

Incorrect read_to_end while reading incoming publishes #24

Open tekjar opened 7 years ago

tekjar commented 7 years ago

https://github.com/inre/rust-mq/blob/master/mqtt3/src/read.rs#L155

Hi @inre. Is that correct? Maybe you forgot to do take(len)?