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 5c5ff54 commit 0f72acbCopy full SHA for 0f72acb
src/protocol/mod.rs
@@ -1041,10 +1041,22 @@ impl Conn {
1041
}
1042
1043
pub fn write_packet<T: PacketType>(&mut self, packet: T) -> Result<(), Error> {
1044
+ let network_debug = unsafe { NETWORK_DEBUG };
1045
+
1046
+ /* TODO: debug printing packets to send
1047
+ if network_debug {
1048
+ println!("about to send {:?}", packet);
1049
+ }
1050
+ */
1051
1052
let mut buf = Vec::new();
1053
VarInt(packet.packet_id(self.protocol_version)).write_to(&mut buf)?;
1054
packet.write(&mut buf)?;
1055
1056
1057
+ println!("sent bytes {:?}", buf);
1058
1059
1060
let mut extra = if self.compression_threshold >= 0 {
1061
1
1062
} else {
0 commit comments