wait for no more messages instead of killing server, reduced wait times

This commit is contained in:
john30
2017-04-17 12:28:33 +02:00
parent a63a2336ff
commit 87aaba96c9
+2 -3
View File
@@ -90,9 +90,9 @@ if (($cli=socket_accept($srv))===false) {
$output="";
$input=$hexinput="";
echo "server: running\n";
$endtime=time()+20;
$endtime=time()+15;
$firstsend=time()+5;
$secondsend=time()+15;
$secondsend=time()+10;
$expectnext="";
$error=0;
while (time()<$endtime) {
@@ -328,6 +328,5 @@ echo "ebusd log:"
cat "$PWD/ebusd.log"
sleep 5
kill $pid
kill $srvpid
echo "done."
wait $srvpid