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
This commit is contained in:
Stefan Eissing 2024-07-05 14:09:22 +02:00 коммит произвёл Daniel Stenberg
Родитель 2abfc759b9
Коммит fe83133d5e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 5CC908FDB71E12C2
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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);
}