X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_request_pool_api.c;h=ae125259302939a74a3882147f23b185bd0ceaa1;hb=eae2e0b6f3ec09658c4e5ea54662a2221890fed7;hp=e93a078c0b7b1ac6cccc8dcc054b1888e253c17d;hpb=9b6cff9fb09a6a49d75439b03201f8e6c8995e22;p=m6w6%2Fext-http diff --git a/http_request_pool_api.c b/http_request_pool_api.c index e93a078..ae12525 100644 --- a/http_request_pool_api.c +++ b/http_request_pool_api.c @@ -216,7 +216,8 @@ PHP_HTTP_API STATUS _http_request_pool_send(http_request_pool *pool TSRMLS_DC) while (http_request_pool_perform(pool, 0)) { if (SUCCESS != http_request_pool_select(pool)) { #ifdef PHP_WIN32 - http_error(HE_WARNING, HTTP_E_SOCKET, WSAGetLastError()); + /* see http://msdn.microsoft.com/library/en-us/winsock/winsock/windows_sockets_error_codes_2.asp */ + http_error_ex(HE_WARNING, HTTP_E_SOCKET, "WinSock error: %d", WSAGetLastError()); #else http_error(HE_WARNING, HTTP_E_SOCKET, strerror(errno)); #endif