We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99f1e34 commit 6a3e8c7Copy full SHA for 6a3e8c7
src/protocol/mod.rs
@@ -1006,10 +1006,22 @@ impl Conn {
1006
}
1007
1008
pub fn write_packet<T: PacketType>(&mut self, packet: T) -> Result<(), Error> {
1009
+ let network_debug = unsafe { NETWORK_DEBUG };
1010
+
1011
+ /* TODO: debug printing packets to send
1012
+ if network_debug {
1013
+ println!("about to send {:?}", packet);
1014
+ }
1015
+ */
1016
1017
let mut buf = Vec::new();
1018
VarInt(packet.packet_id(self.protocol_version)).write_to(&mut buf)?;
1019
packet.write(&mut buf)?;
1020
1021
1022
+ println!("sent bytes {:?}", buf);
1023
1024
1025
let mut extra = if self.compression_threshold >= 0 {
1026
1
1027
} else {
0 commit comments