RPI Ping

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

Fix kommt gleich…

paresy

Hi,

vielen Dank für das schnelle Update.
Geht jetzt viel besser!

Aber (192.168.1.238 gibt es bei mir nicht.):


$ip = '192.168.1.238';
$timeout = 500;

var_dump(Sys_Ping($ip, $timeout));

liefert mir meist innerhalb von 510 ms ein „bool(false)“ zurück. Wie erwartet.
Zumindest meinstens :eek:

Ich bekomme zwischendurch immer wieder ein „bool(true)“ :confused: Obwhol es die IP ganz sicher nicht gibt!

Irgendwie scheint da der Wurm drin zu sein…

Gruß,
Thorsten

Jupp. Ich denke noch einen Fehler gefunden zu haben. Gibt am Nachmittag einen Fix dafür :slight_smile:

paresy

Hi,

so sieht es gut aus!

Danke,
Thorsten