X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient008.phpt;h=98fc8f8aebc34d9da458bbf1a252a10f208b8e83;hp=d7fe35822517fed372a1a254fdcfcbd79389db91;hb=b2a4f89e30c04a18ec0da23d2ff0c80c2dccf42e;hpb=87db9817d428282792c8146d9c2ae9748ebf6f1e diff --git a/tests/client008.phpt b/tests/client008.phpt index d7fe358..98fc8f8 100644 --- a/tests/client008.phpt +++ b/tests/client008.phpt @@ -3,28 +3,35 @@ client features --SKIPIF-- --FILE-- enablePipelining(true); - $client->enableEvents(true); +server("pipeline.inc", function($port, $stdin) { + fputs($stdin, "2\n"); + $request = new http\Client\Request("GET", "http://localhost:$port"); + + $client = new http\Client(); + $client->configure(array("pipelining" => true, "use_eventloop" => true)); + $client->enqueue($request); + $client->send(); + $client->enqueue(clone $request); $client->enqueue(clone $request); - + $client->send(); - + while ($client->getResponse()) { echo "R\n"; } -} +}); ?> Done