inre/rust-mq

`write` doesn't guarantee full writes

tekjar opened this issue · 0 comments

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