X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_request_pool_api.c;h=7c3732004f71d784d69c4289745b648ab573e92f;hb=4546a3572ba7944441f49136fec96c4afd490396;hp=191ab446d2e763597c51a2565dbc243ae6e60c12;hpb=33b7c5dcd9cffebb8486cb57e04958e34bbfe662;p=m6w6%2Fext-http diff --git a/http_request_pool_api.c b/http_request_pool_api.c index 191ab44..7c37320 100644 --- a/http_request_pool_api.c +++ b/http_request_pool_api.c @@ -256,9 +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 { - 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 *r = NULL; + curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, &r); + http_error_ex(HE_WARNING, HTTP_E_REQUEST, "%s; %s (%s)", curl_easy_strerror(msg->data.result), r?r->_error:"", r?r->url:""); } http_request_pool_catch(); } http_request_pool_try {