summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-02-07 12:49:30 +0000
committerDmitry Stogov <dmitry@php.net>2006-02-07 12:49:30 +0000
commita13e2c57846d390a8d91d4961ab12d42938830e1 (patch)
tree8f5f281914bbb7ac8b4dda4e32601c349813edb3 /ext/soap/php_http.c
parent8e4671ba01eaed1c4115c18cde01159d3d739ec3 (diff)
downloadphp-git-a13e2c57846d390a8d91d4961ab12d42938830e1.tar.gz
Fixed bug #36083 (SoapClient waits for responses on one-way operations)
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r--ext/soap/php_http.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index 2cbf5801f2..b8c5f05b90 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -679,6 +679,13 @@ try_again:
return FALSE;
}
+ if (!buffer) {
+ php_stream_close(stream);
+ zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket"));
+ zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy"));
+ return TRUE;
+ }
+
do {
if (!get_http_headers(stream, &http_headers, &http_header_size TSRMLS_CC)) {
if (http_headers) {efree(http_headers);}