projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- added HttpException::__toString() which takes care about any inner exceptions
[m6w6/ext-http]
/
http_request_pool_api.c
diff --git
a/http_request_pool_api.c
b/http_request_pool_api.c
index e93a078c0b7b1ac6cccc8dcc054b1888e253c17d..ae125259302939a74a3882147f23b185bd0ceaa1 100644
(file)
--- 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
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
#else
http_error(HE_WARNING, HTTP_E_SOCKET, strerror(errno));
#endif