mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 09:55:38 +00:00
00_KNXIO.pm: rework logging,limit timeouts (Forum Thread #127792)
git-svn-id: https://svn.fhem.de/fhem/trunk@27412 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1adcf9e5a3
commit
1ec90ff16a
@ -1102,11 +1102,11 @@ sub KNXIO_keepAliveTO {
|
|||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
my $cntrTO = $hash->{KNXIOhelper}->{CNTRTO};
|
my $cntrTO = $hash->{KNXIOhelper}->{CNTRTO};
|
||||||
|
|
||||||
|
return KNXIO_disconnect($hash) if ($cntrTO >= 2); # nr of timeouts exceeded
|
||||||
|
|
||||||
$cntrTO++;
|
$cntrTO++;
|
||||||
KNXIO_Log ($name, 3, qq{timeout - retry $cntrTO});
|
KNXIO_Log ($name, 3, qq{timeout - retry $cntrTO});
|
||||||
|
KNXIO_keepAlive($hash,$cntrTO);
|
||||||
return KNXIO_keepAlive($hash,$cntrTO) if ($cntrTO < 3);
|
|
||||||
KNXIO_disconnect($hash); # nr of timeouts exceeded
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user