Edit report at https://bugs.php.net/bug.php?id=61886&edit=1
ID: 61886 Updated by: pierr...@php.net Reported by: develop1983 at gmail dot com Summary: cURL returns error 209 -Status: Open +Status: Not a bug Type: Bug Package: cURL related Operating System: win7 x86 PHP Version: 5.3.11 Block user comment: N Private report: N New Comment: As mentionned in the comments of Bug #61141 this is not a bug : Internally php curl_multi_select uses libcurl curl_multi_fdset function to set all the fd_set and the maxfd value. The libcurl curl_multi_fdset documentation says : When libcurl returns -1 in max_fd, it is because libcurl currently does something that isn't possible for your application to monitor with a socket and unfortunately you can then not know exactly when the current action is completed using select(). When max_fd returns with -1, you need to wait a while and then proceed and call curl_multi_perform anyway. How long to wait? I would suggest 100 milliseconds at least, but you may want to test it out in your own particular conditions to find a suitable value. If you modify the script to wait some time if the curl_multi_select return -1 and then do the curl_multi_exec it should work (it worked on my setup with both curl versions). Previous Comments: ------------------------------------------------------------------------ [2012-09-29 18:23:06] develop1983 at gmail dot com > I think this bug is related to Bug #61141 could you confirm ? I think you're right. The issue is the same: works with curl from the php 5.3.9 package and earlier versions and fails with later versions. I've tested it with curl from the php 5.4.5 package. The bug slill exists. ------------------------------------------------------------------------ [2012-09-28 17:03:19] pierr...@php.net I think this bug is related to Bug #61141 could you confirm ? ------------------------------------------------------------------------ [2012-05-09 19:13:07] develop1983 at gmail dot com Any advancements? Have you reproduced this issue? Or you have question? ------------------------------------------------------------------------ [2012-05-03 17:17:24] develop1983 at gmail dot com > I can not reproduce it with php5.3-trunk and libcurl/7.21.6 It should work with libcurl/7.21.6 (I think), because it works with v7.21.7 (as I mentioned). It doesn't work with cURL v7.24.0 (in PHP 5.3.11) > and I think it should not a issue of libcurl's version. Hmmm... It notices cURL warnings... And I don't think it is an issue of PHP. > did you use APC or Eacc? thanks I don't know. I downloaded the MSI file of PHP 5.3.11 and install the software (as I did with PHP 5.3.9 ago). I don't use any additional softwares. Just PHP "as is" as it installed with MSI file. Thanks. ------------------------------------------------------------------------ [2012-05-03 06:09:27] larue...@php.net I can not reproduce it with php5.3-trunk and libcurl/7.21.6 and I think it should not a issue of libcurl's version. did you use APC or Eacc? thanks ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=61886 -- Edit this bug report at https://bugs.php.net/bug.php?id=61886&edit=1