From fe83133d5e10169cbd42d275747e26118ef83e3e Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Fri, 5 Jul 2024 14:09:22 +0200 Subject: [PATCH] multi: pollset assertion only when IP connected Give warning for an empty pollset only when the connection has at least IP connectivity. There are cases where the connect in QUIC makes another attempt on a timeout and no socket will be available during that. Closes #14108 --- lib/multi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/multi.c b/lib/multi.c index 273c1771ec..c5330ebe10 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -1198,7 +1198,8 @@ static void multi_getsock(struct Curl_easy *data, } if(expect_sockets && !ps->num && - !(data->req.keepon & (KEEP_RECV_PAUSE|KEEP_SEND_PAUSE))) { + !(data->req.keepon & (KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) && + Curl_conn_is_ip_connected(data, FIRSTSOCKET)) { infof(data, "WARNING: no socket in pollset, transfer may stall!"); DEBUGASSERT(0); }