Hallo,
das letze Update hat er verschlimbessert:
$ip = '192.168.1.10';
$timeout = 500;
var_dump(Sys_Ping($ip, $timeout));
liefert mir nach 10ms ein bool(false)
$ip = '192.168.1.10';
$timeout = 1000;
var_dump(Sys_Ping($ip, $timeout));
hingegen nach 9ms ein bool(true)…
Kannst Du bitte noch mal schauen?
Bei einem timeout von 1000 bekomme ich eigentlich zuverlässig ein true,
Bei 800 gnaz selten mal ein true.
Bei 900 schon häufiger.
Auf OS Ebene passt es:
root@ipsymcon:~# ping 192.168.1.10
PING 192.168.1.10 (192.168.1.10) 56(84) bytes of data.
64 bytes from 192.168.1.10: icmp_req=1 ttl=64 time=1.56 ms
64 bytes from 192.168.1.10: icmp_req=2 ttl=64 time=1.24 ms
64 bytes from 192.168.1.10: icmp_req=3 ttl=64 time=1.08 ms
64 bytes from 192.168.1.10: icmp_req=4 ttl=64 time=1.06 ms
64 bytes from 192.168.1.10: icmp_req=5 ttl=64 time=385 ms
64 bytes from 192.168.1.10: icmp_req=6 ttl=64 time=355 ms
64 bytes from 192.168.1.10: icmp_req=7 ttl=64 time=1.21 ms
64 bytes from 192.168.1.10: icmp_req=8 ttl=64 time=1.06 ms
64 bytes from 192.168.1.10: icmp_req=9 ttl=64 time=352 ms
64 bytes from 192.168.1.10: icmp_req=10 ttl=64 time=394 ms
64 bytes from 192.168.1.10: icmp_req=11 ttl=64 time=23.3 ms
64 bytes from 192.168.1.10: icmp_req=12 ttl=64 time=350 ms
64 bytes from 192.168.1.10: icmp_req=13 ttl=64 time=1.37 ms
64 bytes from 192.168.1.10: icmp_req=14 ttl=64 time=1.23 ms
64 bytes from 192.168.1.10: icmp_req=15 ttl=64 time=386 ms
64 bytes from 192.168.1.10: icmp_req=16 ttl=64 time=1.09 ms
64 bytes from 192.168.1.10: icmp_req=17 ttl=64 time=1.08 ms
64 bytes from 192.168.1.10: icmp_req=18 ttl=64 time=1.08 ms
64 bytes from 192.168.1.10: icmp_req=19 ttl=64 time=343 ms
64 bytes from 192.168.1.10: icmp_req=20 ttl=64 time=1.21 ms
64 bytes from 192.168.1.10: icmp_req=21 ttl=64 time=1.09 ms
64 bytes from 192.168.1.10: icmp_req=22 ttl=64 time=4.35 ms
64 bytes from 192.168.1.10: icmp_req=23 ttl=64 time=1.08 ms
64 bytes from 192.168.1.10: icmp_req=24 ttl=64 time=191 ms
64 bytes from 192.168.1.10: icmp_req=25 ttl=64 time=1.23 ms
64 bytes from 192.168.1.10: icmp_req=26 ttl=64 time=1.23 ms
64 bytes from 192.168.1.10: icmp_req=27 ttl=64 time=1.08 ms
^C
--- 192.168.1.10 ping statistics ---
27 packets transmitted, 27 received, 0% packet loss, time 26026ms
rtt min/avg/max/mdev = 1.063/104.042/394.515/159.980 ms
root@ipsymcon:~#
Danke,
Thorsten