accept: Drop outdated FIXME SO_KEEPALIVE

SO_KEEPALIVE isn't useless with long idle timeouts.  Before v4.3.30's
idle timeout changes, such long timeouts had serious drawbacks (easy
denial of service), but they're just fine since then.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2013-08-11 13:53:52 +02:00
parent 682a035b7c
commit 122cb5fc3b

View file

@ -201,7 +201,6 @@ player_accept(void *unused)
logerror("new socket accept"); logerror("new socket accept");
continue; continue;
} }
/* FIXME SO_KEEPALIVE is useless, player_kill_idle() strikes long before */
(void)setsockopt(ns, SOL_SOCKET, SO_KEEPALIVE, &set, sizeof(set)); (void)setsockopt(ns, SOL_SOCKET, SO_KEEPALIVE, &set, sizeof(set));
np = player_new(ns); np = player_new(ns);
if (!np) { if (!np) {