From a13e2c57846d390a8d91d4961ab12d42938830e1 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 7 Feb 2006 12:49:30 +0000 Subject: Fixed bug #36083 (SoapClient waits for responses on one-way operations) --- ext/soap/php_http.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ext/soap/php_http.c') 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);} -- cgit v1.2.1