#41984 [NEW]: Hangs on large SoapClient requests
| From: | mr_walsh at yahoo dot com | Date: | Thu, 12 Jul 2007 22:01:00 +0000 |
| Subject: | #41984 [NEW]: Hangs on large SoapClient requests | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-115003@lists.php.net to get a copy of this message | ||
From: mr_walsh at yahoo dot com
Operating system: Linux and OSX
PHP version: 5.2.3
PHP Bug Type: SOAP related
Bug description: Hangs on large SoapClient requests
Description:
------------
Recently I added a field with a large string to an already stable SOAP
call. This made the SoapClient call hang. I was able in fact to see from
_getLastRequest that if the raw sent XML PHP generates is over 67979 bytes
on Mac OSX or something like 11000 bytes on Linux the problem happens every
time.
I ran in the debugger and it makes it nearly certain this is some sort of
socket interface problem.
This seems just like bug #29256 but I'm using the very latest php 5.2.3.
Is there some sort of socket configuration I can do as a workaround?
#1 0x004d3a31 in send () from /lib/tls/libpthread.so.0
#2 0x082796e3 in php_sockop_write (stream=0xb7ecc508,
buf=0xb73c9018
"szwOUrHRAXXwmeqiMzFOndm1nfunsjT+Hy63WxwOoCJ6Q0Ar9Py8rC8rwzRAttA/H/oqvzMywB46gqL6MzGQwmmE5HNLz02Gehchq6puU1pFZOX4LabnB6Jp1+XYfbGjKkAvYbNPBvM10oACKAGaoTGBBnGpk+IuWq4NDXdSgOHot51/K8NE1zdTuk6wWIAvnMI9B64Z"...,
count=7259) at /home/msw/php-5.2.3/main/streams/xp_socket.c:62
#3 0x08095448 in php_openssl_sockop_write (stream=0xb7ecc508,
buf=0xb73c9018
"szwOUrHRAXXwmeqiMzFOndm1nfunsjT+Hy63WxwOoCJ6Q0Ar9Py8rC8rwzRAttA/H/oqvzMywB46gqL6MzGQwmmE5HNLz02Gehchq6puU1pFZOX4LabnB6Jp1+XYfbGjKkAvYbNPBvM10oACKAGaoTGBBnGpk+IuWq4NDXdSgOHot51/K8NE1zdTuk6wWIAvnMI9B64Z"...,
count=7259) at /home/msw/php-5.2.3/ext/openssl/xp_ssl.c:203
#4 0x08271491 in _php_stream_write_buffer (stream=0xb7ecc508,
buf=0xb73c9018
"szwOUrHRAXXwmeqiMzFOndm1nfunsjT+Hy63WxwOoCJ6Q0Ar9Py8rC8rwzRAttA/H/oqvzMywB46gqL6MzGQwmmE5HNLz02Gehchq6puU1pFZOX4LabnB6Jp1+XYfbGjKkAvYbNPBvM10oACKAGaoTGBBnGpk+IuWq4NDXdSgOHot51/K8NE1zdTuk6wWIAvnMI9B64Z"...,
count=7259) at /home/msw/php-5.2.3/main/streams/streams.c:912
#5 0x081988f4 in make_http_soap_request (this_ptr=0xb7b1fb90,
buf=0x8b194b8 "<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope
xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"
xmlns:ns1=\"https://boxaroo.whateverittakes.com\"><SOAP-ENV:Body><ns1:BoxRequestOrder"...,
buf_size=15193, location=0xb7b5f9d4 "http://blah.com/blah.asmx",
soapaction=0xb7ab38bc "https://blah.com/SubmitRequest",
soap_version=1,
buffer=0xb7b5f49c, buffer_len=0xb7b5f4a0) at
/home/msw/php-5.2.3/ext/soap/php_http.c:683
#6 0x08184902 in zim_SoapClient___doRequest (ht=5,
return_value=0xb7b5f49c, return_value_ptr=0x0,
this_ptr=0xb7b1fb90, return_value_used=1) at
/home/msw/php-5.2.3/ext/soap/soap.c:2993
#7 0x0828ee1a in zend_call_function (fci=0xbff12940, fci_cache=0x0)
at /home/msw/php-5.2.3/Zend/zend_execute_API.c:989
#8 0x0828f5f0 in call_user_function_ex (function_table=0x1908,
object_pp=0x1908, function_name=0x1908,
retval_ptr_ptr=0x1908, param_count=6408, params=0x1908,
no_separation=6408, symbol_table=0x1908)
at /home/msw/php-5.2.3/Zend/zend_execute_API.c:602
#9 0x0828f62c in call_user_function (function_table=0x0,
object_pp=0xbff129f0, function_name=0xbff12a70,
retval_ptr=0xbff12be0, param_count=5, params=0xbff12a00)
at /home/msw/php-5.2.3/Zend/zend_execute_API.c:575
#10 0x08185244 in do_request (this_ptr=Variable "this_ptr" is not
available.
) at /home/msw/php-5.2.3/ext/soap/soap.c:2457
#11 0x0818aee1 in do_soap_call (this_ptr=0xb7b1fb90, function=0xb7b229f4
"SubmitRequest",
function_len=21, arg_count=1, real_args=0xb7ab36d8,
return_value=0xb764fd84,
location=0xb7b5f9d4 "http://blah.com/blah.asmx", soap_action=0x0,
call_uri=0x0, soap_headers=0x0, output_headers=0x0) at
/home/msw/php-5.2.3/ext/soap/soap.c:2600
--
Edit bug report at http://bugs.php.net/?id=41984&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41984&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41984&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41984&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41984&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41984&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41984&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41984&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41984&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41984&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41984&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41984&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41984&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41984&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41984&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41984&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41984&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41984&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41984&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41984&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41984&r=mysqlcfg