From b3f63f934af3f17acb719130471ca6caca59e858 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 6 Sep 2005 11:47:57 +0000 Subject: [PATCH] - all those macros may conflict --- http_request_pool_api.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } } -- 2.30.2