X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_pool_api.c;h=282fda9ed2df25b2becac2c64ccd09e617642fb0;hp=41352b586ad48e54d2d9b2f2108a510f3478f7ac;hb=c71fd3a3bcc7231f2efc4c7520888880f42a6b3c;hpb=61f165688d2cc39424678829a145c8cbab51d1af diff --git a/http_request_pool_api.c b/http_request_pool_api.c index 41352b5..282fda9 100644 --- a/http_request_pool_api.c +++ b/http_request_pool_api.c @@ -186,7 +186,11 @@ PHP_HTTP_API STATUS _http_request_pool_send(http_request_pool *pool TSRMLS_DC) 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; } }