projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- #ifdef CURLOPT_COOKIELIST out for libcurl < v7.14.1
[m6w6/ext-http]
/
tests
/
HttpRequestPool_002.phpt
diff --git
a/tests/HttpRequestPool_002.phpt
b/tests/HttpRequestPool_002.phpt
index 053f1f6b76804c3d769b229c516f1f3e4aeaf1dd..8195dadc67885fa17185ae4c3e93a14b45b3843f 100644
(file)
--- a/
tests/HttpRequestPool_002.phpt
+++ b/
tests/HttpRequestPool_002.phpt
@@
-14,21
+14,23
@@
class MyPool extends HttpRequestPool
public function send()
{
while ($this->socketPerform()) {
public function send()
{
while ($this->socketPerform()) {
- $this->handleRequests();
if (!$this->socketSelect()) {
throw new HttpSocketException;
}
}
if (!$this->socketSelect()) {
throw new HttpSocketException;
}
}
- $this->handleRequests();
}
}
- pr
ivate function handleRequests
()
+ pr
otected final function socketPerform
()
{
{
+ $result = parent::socketPerform();
+
echo ".";
foreach ($this->getFinishedRequests() as $r) {
echo "=", $r->getResponseCode(), "=";
$this->detach($r);
}
echo ".";
foreach ($this->getFinishedRequests() as $r) {
echo "=", $r->getResponseCode(), "=";
$this->detach($r);
}
+
+ return $result;
}
}
}
}
@@
-45,5
+47,5
@@
echo "\nDone\n";
?>
--EXPECTREGEX--
.+TEST
?>
--EXPECTREGEX--
.+TEST
-\.
+=200=\.+=200=\.+=200=\.+
=200=
+\.
*=200=\.*=200=\.*=200=\.*
=200=
Done
Done