ZEND_EXTERN_MODULE_GLOBALS(http);
+#ifndef HAVE_CURL_MULTI_STRERROR
+# define curl_multi_strerror(dummy) "unknown error"
+#endif
+
static void http_request_pool_freebody(http_request_body **body);
static int http_request_pool_compare_handles(void *h1, void *h2);
fprintf(stderr, "> %d unfinished requests of pool %p remaining\n", pool->unfinished, pool);
#endif
if (SUCCESS != http_request_pool_select(pool)) {
- http_error(HE_WARNING, HTTP_E_SOCKET, "Socket error");
+#ifdef PHP_WIN32
+ http_error(HE_WARNING, HTTP_E_SOCKET, WSAGetLastError());
+#else
+ http_error(HE_WARNING, HTTP_E_SOCKET, strerror(errno));
+#endif
return FAILURE;
}
}