Skip to content

Commit

Permalink
Fix precedence issue causing sub-second timeouts to be 0 in
Browse files Browse the repository at this point in the history
curl_multi_select
  • Loading branch information
rlerdorf committed May 21, 2019
1 parent e6a191d commit 7b42cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/curl/multi.c
Expand Up @@ -233,7 +233,7 @@ PHP_FUNCTION(curl_multi_select)
}

#if LIBCURL_VERSION_NUM >= 0x071c00 /* Available since 7.28.0 */
error = curl_multi_wait(mh->multi, NULL, 0, (unsigned long) timeout * 1000.0, &numfds);
error = curl_multi_wait(mh->multi, NULL, 0, (unsigned long) (timeout * 1000.0), &numfds);
if (CURLM_OK != error) {
SAVE_CURLM_ERROR(mh, error);
RETURN_LONG(-1);
Expand Down

0 comments on commit 7b42cdf

Please sign in to comment.