DevIo.pm/TcpServerUtils.pm: TCP KEEPALIVE added, as requested in forum#21022

git-svn-id: https://svn.fhem.de/fhem/trunk@5350 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-03-28 12:48:14 +00:00
parent 608f33d9a8
commit dc3df65137
2 changed files with 3 additions and 1 deletions

View File

@@ -112,6 +112,7 @@ TcpServer_Accept($$)
$defs{$cname} = \%nhash;
$selectlist{$nhash{NAME}} = \%nhash;
my $ret = $clientinfo[0]->setsockopt(SOL_SOCKET, SO_KEEPALIVE, 1);
Log3 $name, 4, "Connection accepted from $nhash{NAME}";
return \%nhash;