Add timeouts to 'tinc join'
authorKirill Isakov <bootctl@gmail.com>
Sun, 5 Jun 2022 11:06:05 +0000 (17:06 +0600)
committerKirill Isakov <bootctl@gmail.com>
Sun, 5 Jun 2022 11:06:05 +0000 (17:06 +0600)
commit4c6a9a9611442f958c3049a566ac4369653978e9
tree8f40b6b0b1ddcfdc0f4e9561948594b767257d5a
parent517dc91e4bf0e64d513cfd23dd2e25c303557f2a
Add timeouts to 'tinc join'

Since server tarpits suspicious connections, `tinc join` doesn't have
the best UX (if anything is broken on server's side, `tinc join` just
hangs indefinitely).

Since we don't want to leak information to the client, add timeouts on
the client side and notify the user that something is amiss if timeout
is reached.
src/invitation.c
src/invitation.h
src/tincctl.c
test/integration/cmd_join.py