bittorrent.org icon indicating copy to clipboard operation
bittorrent.org copied to clipboard

BEP 29: graceful connection termination

Open povilasb opened this issue 6 years ago • 2 comments

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? image where

  1. Peer1 sends Fin
  2. Peer2 sends Ack
  3. Peer1 waits for Fin
  4. Peer2 sends Fin
  5. Peer1 sends Ack

povilasb avatar May 04 '18 10:05 povilasb

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 :)

povilasb avatar May 07 '18 07:05 povilasb

patches welcome

ssiloti avatar May 11 '18 20:05 ssiloti