bittorrent.org
bittorrent.org copied to clipboard
BEP 29: graceful connection termination
http://www.bittorrent.org/beps/bep_0029.html doesn't specify how we should gracefully shutdown two way uTP communication.
Is it similar to TCP?
where
- Peer1 sends Fin
- Peer2 sends Ack
- Peer1 waits for Fin
- Peer2 sends Fin
- Peer1 sends Ack
I reviewed https://github.com/bittorrent/libutp and indeed it seems like it works just like TCP. Except I'm not sure about timeouts... You guys mind if I make a PR to BEP 29 and specify the graceful connection shutdown process? I believe that would disambiguate connection termination for other developers :)
patches welcome