public function send()
{
while ($this->socketPerform()) {
- $this->handleRequests();
if (!$this->socketSelect()) {
throw new HttpSocketException;
}
}
- $this->handleRequests();
}
- private function handleRequests()
+ protected final function socketPerform()
{
+ $result = parent::socketPerform();
+
echo ".";
foreach ($this->getFinishedRequests() as $r) {
echo "=", $r->getResponseCode(), "=";
$this->detach($r);
}
+
+ return $result;
}
}
?>
--EXPECTREGEX--
.+TEST
-\.+=200=\.+=200=\.+=200=\.+=200=
+\.*=200=\.*=200=\.*=200=\.*=200=
Done