Skip to content

Commit 2a3ae40

Browse files
committed
fix 2
1 parent 950e73f commit 2a3ae40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

thirdparty/php/curl/interface.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,13 @@ long cURLMulti::select(php_curlm *mh) {
411411
}
412412

413413
void cURLMulti::socket_action(int fd, int event_bitmask) {
414-
curl_multi_socket_action(handle, fd, event_bitmask, &selector->running_handles);
414+
int running_handles = 0;
415+
curl_multi_socket_action(handle, fd, event_bitmask, &running_handles);
415416

416417
// for curl_multi_select
417418
if (selector) {
418419
selector->active_handles.insert(fd);
420+
selector->running_handles = running_handles;
419421
if (!selector->context || selector->defer_callback) {
420422
return;
421423
}

0 commit comments

Comments
 (0)