projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- multiple send seems to work now without bigger problems
[m6w6/ext-http]
/
http_methods.c
diff --git
a/http_methods.c
b/http_methods.c
index d71c2caa6d4d7a5f4756ac6baabea975c6eabba0..94a47573f3e69c164cb2fd85077649727eb7c77e 100644
(file)
--- a/
http_methods.c
+++ b/
http_methods.c
@@
-2156,8
+2156,8
@@
PHP_METHOD(HttpRequest, send)
* }
* $pool->send();
* foreach ($urls as $url) {
* }
* $pool->send();
* foreach ($urls as $url) {
- * printf("%s (%s) is %s\n",
- * $url, $req[$url]->getResponseInfo('effective_url'),
+ * printf("%s (%s) is %s\n",
+ * $url, $req[$url]->getResponseInfo('effective_url'),
* $r->getResponseCode() == 200 ? 'alive' : 'not alive'
* );
* }
* $r->getResponseCode() == 200 ? 'alive' : 'not alive'
* );
* }
@@
-2255,11
+2255,16
@@
PHP_METHOD(HttpRequestPool, detach)
*/
PHP_METHOD(HttpRequestPool, send)
{
*/
PHP_METHOD(HttpRequestPool, send)
{
+ STATUS status;
getObject(http_requestpool_object, obj);
NO_ARGS;
getObject(http_requestpool_object, obj);
NO_ARGS;
- RETURN_SUCCESS(http_request_pool_send(&obj->pool));
+ SET_EH_THROW_HTTP();
+ status = http_request_pool_send(&obj->pool);
+ SET_EH_NORMAL();
+
+ RETURN_SUCCESS(status);
}
/* }}} */
}
/* }}} */