]> git.ipfire.org Git - thirdparty/curl.git/commit
transfer: adjust_pollset improvements
authorStefan Eissing <stefan@eissing.org>
Fri, 5 Jan 2024 11:28:09 +0000 (12:28 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 7 Jan 2024 13:36:25 +0000 (14:36 +0100)
commita0f94800d507de580f04a447cf14edc9f52697dc
treea0e3b6b118c088739a45898909d3c614446f5abb
parent8edcfedc1a144f438bd1cdf814a0016cbe678aaf
transfer: adjust_pollset improvements

- let `multi_getsock()` initialize the pollset in what the
  transfer state requires in regards to SEND/RECV
- change connection filters `adjust_pollset()` implementation
  to react on the presence of POLLIN/-OUT in the pollset and
  no longer check CURL_WANT_SEND/CURL_WANT_RECV
- cf-socket will no longer add POLLIN on its own
- http2 and http/3 filters will only do adjustments if the
  passed pollset wants to POLLIN/OUT for the transfer on
  the socket. This is similar to the HTTP/2 proxy filter
  and works in stacked filters.

Closes #12640
lib/cf-socket.c
lib/cfilters.c
lib/cfilters.h
lib/http2.c
lib/multi.c
lib/transfer.c
lib/transfer.h
lib/urldata.h
lib/vquic/curl_ngtcp2.c
lib/vquic/curl_quiche.c