X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fhelper%2Fserver.inc;fp=tests%2Fhelper%2Fserver.inc;h=af71a0e2a66f2244ed350f0801e46fa5cb1e6aed;hp=78a63eee3098f71de890ad2dce7e88956b4ecda5;hb=7a492dc2544d408eb65fd38cb644fd6adde3bbe9;hpb=8158548a80733b3af9539356b47527d960a13287 diff --git a/tests/helper/server.inc b/tests/helper/server.inc index 78a63ee..af71a0e 100644 --- a/tests/helper/server.inc +++ b/tests/helper/server.inc @@ -95,9 +95,9 @@ function nghttpd($cb) { $stdout = $pipes[1]; $stderr = $pipes[2]; - usleep(50000); + sleep(1); $status = proc_get_status($proc); - + logger("nghttpd: %s", new http\Params($status)); if (!$status["running"]) { continue; } @@ -121,6 +121,7 @@ function nghttpd($cb) { function proc($bin, $args, $cb) { $spec = array(array("pipe","r"), array("pipe","w"), array("pipe","w")); $comm = escapeshellcmd($bin) . " ". implode(" ", array_map("escapeshellarg", $args)); + logger("proc: %s %s", $bin, implode(" ", $args)); if (($proc = proc_open($comm, $spec, $pipes, __DIR__))) { $stdin = $pipes[0]; $stdout = $pipes[1];