inre / rust-mq

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

`write` doesn't guarantee full writes #25

Open tekjar opened 7 years ago

tekjar commented 7 years ago

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

Maybe all the writes should be replaced with write_all since write doesn't guarantee complete writes? This would be problem while doing synchronous request/response since you can't do a read_incoming_mqtt call immediately after write_packet