rust-mq icon indicating copy to clipboard operation
rust-mq copied to clipboard

`write` doesn't guarantee full writes

Open tekjar opened this issue 7 years ago • 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

tekjar avatar Jun 14 '17 08:06 tekjar