]> git.ipfire.org Git - thirdparty/curl.git/commit
multi: multi_getsock(), check correct socket
authorStefan Eissing <stefan@eissing.org>
Tue, 25 Jun 2024 09:35:48 +0000 (11:35 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 25 Jun 2024 11:15:01 +0000 (13:15 +0200)
commitdef99d850792ded8ea16614a200ac76534cf05f5
treec9a352a91af0b68e00618d1be845546af5a0eaa2
parent8e3e3921e6147006ef8ea5be1916d1623eeb2f7e
multi: multi_getsock(), check correct socket

 - in phase CONNECTING/TUNNELING/PROTOCONNECT, retrieve
   the socket from the connection filters and do not rely
   on `conn->sockfd` being already set by the transfer.
 - this applies to the default behaviour, a protocol handler
   may override this via its callbacks.
 - add a warning message in multi_getsock() when the transfer
   is expected to have something in its pollset, but instead
   it is empty.

Reported-by: saurabhsingh-dev on github
Fixes #13998
Closes #14011
lib/multi.c