- made the silently failing message parser raise some errors
[m6w6/ext-http] / http_request_pool_api.c
index 6bc43535acbfbd3c403bd3a417c774c306c87fcd..191ab446d2e763597c51a2565dbc243ae6e60c12 100644 (file)
@@ -256,7 +256,9 @@ PHP_HTTP_API int _http_request_pool_perform(http_request_pool *pool TSRMLS_DC)
                if (CURLMSG_DONE == msg->msg) {
                        if (CURLE_OK != msg->data.result) {
                                http_request_pool_try {
-                                       http_error(HE_WARNING, HTTP_E_REQUEST, curl_easy_strerror(msg->data.result));
+                                       char *url = NULL;
+                                       curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &url);
+                                       http_error_ex(HE_WARNING, HTTP_E_REQUEST, "%s (%s)", curl_easy_strerror(msg->data.result), url);
                                } http_request_pool_catch();
                        }
                        http_request_pool_try {