2 client eventloop recursion
11 include "helper/server.inc";
13 class test implements SplObserver {
14 function update(SplSubject $client) {
18 server("proxy.inc", function($port) {
19 $client = new http\Client;
20 $client->configure(array(
21 "use_eventloop" => true,
23 $client->attach(new test);
24 $client->enqueue(new http\Client\Request("GET", "http://localhost:$port/"), function($r) {
25 var_dump($r->getResponseCode());