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