]> git.ipfire.org Git - thirdparty/curl.git/commit
multi: fix polling with pending input
authorStefan Eissing <stefan@eissing.org>
Mon, 16 Jun 2025 10:19:52 +0000 (12:19 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 16 Jun 2025 11:04:03 +0000 (13:04 +0200)
commit62349e45a818e50b5cdcd017c149f9dc87fce9fe
treeb509e2f15844a82ee1224fa24fabd9058ef9533a
parent739c09c8a4111b3ee00b0004f5a3f67e00ba3aeb
multi: fix polling with pending input

When multi creates the pollset of a transfer, it checks now if
a connection (FIRST/SECONDARY) socket waits on POLLIN and has input data
pending in filters (relevant to OpenSSL's new read ahead). If so, it
triggers a timeout on the transfer via EXPIRE_RUN_NOW.

This fixes sporadic stalls in test 988 when running event based.

Closes #17636
lib/cfilters.c
lib/cfilters.h
lib/multi.c