projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
7741e11
)
add more logging
author
Michael Wallner
<mike@php.net>
Mon, 3 Aug 2015 10:59:57 +0000
(12:59 +0200)
committer
Michael Wallner
<mike@php.net>
Mon, 3 Aug 2015 11:00:03 +0000
(13:00 +0200)
tests/helper/pipeline.inc
patch
|
blob
|
history
diff --git
a/tests/helper/pipeline.inc
b/tests/helper/pipeline.inc
index b7175c109fac1b24d4f4a31e000e08cda288ae4d..942d254ea8b316b0eb188bfba00a3f3f1e0c9727 100644
(file)
--- a/
tests/helper/pipeline.inc
+++ b/
tests/helper/pipeline.inc
@@
-11,16
+11,18
@@
function respond($client, $msg) {
serve(function($client) {
$count = trim(fgets(STDIN));
serve(function($client) {
$count = trim(fgets(STDIN));
-
+ logger("Expecting %d messages", $count);
/* the peek message */
respond($client, new http\Message($client, false));
/* the peek message */
respond($client, new http\Message($client, false));
-
+ logger("Handled the peek request");
/* pipelined messages */
$req = array();
for ($i=0; $i < $count; ++ $i) {
$req[] = new http\Message($client, false);
/* pipelined messages */
$req = array();
for ($i=0; $i < $count; ++ $i) {
$req[] = new http\Message($client, false);
+ logger("Read request no. %d", $i+1);
}
}
- foreach ($req as $msg) {
+ foreach ($req as $
i => $
msg) {
respond($client, $msg);
respond($client, $msg);
+ logger("Sent response no. %d", $i+1);
}
});
}
});