about summary refs log tree commit diff
path: root/cli/btpd_if.c
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2006-07-22 20:44:12 +0000
committerRichard Nyberg <rnyberg@murmeldjur.se>2006-07-22 20:44:12 +0000
commit2a462baead6ed9925c5e86578b8381f1b905ae34 (patch)
treeeabd96f239bb34824ca4c622bde689fe8c17720e /cli/btpd_if.c
parentcfb37a5227c6599a3a7a5179c9c428bb07cde5ed (diff)
downloadbtpd-2a462baead6ed9925c5e86578b8381f1b905ae34.tar.gz
btpd-2a462baead6ed9925c5e86578b8381f1b905ae34.zip
Btpd could be DOS'ed by incoming connections that never send any data.
Strangely such connections are not entirely uncommon. Added a hand shake
time out of 60 seconds to resolve this.

Added a peer_on_tick function which is used to monitor peers for different
timeouts. Timestamps are compared against the reborn btpd_seconds.

The issue has been reported by Ludvig Omholt and Arnaud Bergeron.

Diffstat (limited to 'cli/btpd_if.c')
0 files changed, 0 insertions, 0 deletions