Open tekjar opened 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
write_all
write
read_incoming_mqtt
write_packet
https://github.com/inre/rust-mq/blob/master/mqtt3/src/write.rs#L74
Maybe all the writes should be replaced with
write_all
sincewrite
doesn't guarantee complete writes? This would be problem while doing synchronous request/response since you can't do aread_incoming_mqtt
call immediately afterwrite_packet