X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=http_requestpool_object.c;h=b6662e1c7f7fca9a62bbe813190e42a32b0a8ea5;hb=f44ffa678f477c49d692bb83d2cfc2631ac6f7af;hp=c0ae1357d3e9ca9126a11907faaff40af9c951b4;hpb=f1df16d07b48a2561ec8c3065e094f3f17c09889;p=m6w6%2Fext-http diff --git a/http_requestpool_object.c b/http_requestpool_object.c index c0ae135..b6662e1 100644 --- a/http_requestpool_object.c +++ b/http_requestpool_object.c @@ -333,20 +333,20 @@ PHP_METHOD(HttpRequestPool, send) * public function send() * { * while ($this->socketPerform()) { - * $this->handleRequests(); * if (!$this->socketSelect()) { * throw new HttpSocketExcpetion; * } * } - * $this->handleRequests(); * } * - * private function handleRequests() + * protected final function socketPerform() * { + * $result = parent::socketPerform(); * foreach ($this->getFinishedRequests() as $r) { * $this->detach($r); * // handle response of finished request * } + * return $result; * } * } * ?>