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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user