Make a serde bencode serializer

This commit is contained in:
Igor Katson 2021-07-01 23:37:57 +01:00
parent 563ca78774
commit 5f60f9e1b4
11 changed files with 2436 additions and 142 deletions

View file

@ -217,6 +217,12 @@ impl PeerConnection {
Message::NotInterested => {
info!("received \"not interested\", but we don't care yet")
}
message => {
warn!(
"{}: received unsupported message {:?}, ignoring",
handle, message
);
}
}
if read_so_far > size {