php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #81333 curl_multi_select() not blocking
Submitted: 2021-08-06 01:26 UTC Modified: 2021-08-12 12:23 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: gib-o-master at mail dot ru Assigned:
Status: Open Package: cURL related
PHP Version: Irrelevant OS: win2008r2
Private report: No CVE-ID: None
 [2021-08-06 01:26 UTC] gib-o-master at mail dot ru
Description:
------------
current implementation:

https://github.com/php/php-src/blob/1cf4fb739f7a4fa8404a4c0958f13d04eae519d4/ext/curl/multi.c#L185


https://curl.se/libcurl/c/curl_multi_wait.html says:

If no extra file descriptors are provided and libcurl has no file descriptor to offer to wait for, this function will return immediately. (Try curl_multi_poll instead if you rather avoid this behavior.)

https://curl.se/libcurl/c/curl_multi_poll.html

promises blocking behavior and cleaner syntax, so, maybe replace?






Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-08-06 08:35 UTC] cmb@php.net
-Package: *Network Functions +Package: cURL related
 [2021-08-06 08:37 UTC] cmb@php.net
-Type: Bug +Type: Feature/Change Request
 [2021-08-06 08:37 UTC] cmb@php.net
Doesn't look like a bug to me; changing to feature request.
 [2021-08-12 12:23 UTC] nikic@php.net
-PHP Version: 8.1.0beta2 +PHP Version: Irrelevant
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC