#39229 [NEW]: curl_exec hang on fiew cases of proxy connections
| From: | ludiqely at gmail dot com | Date: | Sun, 22 Oct 2006 19:03:30 +0000 |
| Subject: | #39229 [NEW]: curl_exec hang on fiew cases of proxy connections | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-103880@lists.php.net to get a copy of this message | ||
From: ludiqely at gmail dot com
Operating system: linux
PHP version: 5.1.6
PHP Bug Type: cURL related
Bug description: curl_exec hang on fiew cases of proxy connections
Description:
------------
I've used exactly socks connections.
This code create this problem:
php hang on this line with curl_exec function
Reproduce code:
---------------
$hCurl = curl_init();
curl_setopt ($hCurl, CURLOPT_URL, "http://google.com");
curl_setopt ($hCurl, CURLOPT_HEADER, 0);
curl_setopt ($hCurl, CURLOPT_PROXY, "66.210.89.130:1080");
curl_setopt ($hCurl, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
curl_setopt ($hCurl, CURLOPT_TIMEOUT, 7);
curl_setopt ($hCurl, CURLOPT_CONNECTTIMEOUT, 7);
curl_setopt ($hCurl, CURLE_OPERATION_TIMEOUTED, 7);
curl_setopt ($hCurl, CURLOPT_DNS_CACHE_TIMEOUT, 7);
curl_setopt ($hCurl, CURLOPT_RETURNTRANSFER, 1);
print 'before curl_exec';
$out = curl_exec ($hCurl);
print $out;
Expected result:
----------------
Expected exit from the function under the specified timeout.
--
Edit bug report at http://bugs.php.net/?id=39229&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39229&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39229&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39229&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39229&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39229&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39229&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39229&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39229&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39229&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39229&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39229&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39229&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39229&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39229&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39229&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39229&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39229&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39229&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39229&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39229&r=mysqlcfg