]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: replace conn [write]sockfd members by index
authorStefan Eissing <stefan@eissing.org>
Tue, 5 Aug 2025 11:11:53 +0000 (13:11 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 6 Aug 2025 06:47:12 +0000 (08:47 +0200)
commit6d5570c4dd0a874730ccfdbe885017b77dab7ffc
tree7bc35c47fa6321a5116b0191394abcfee0f5c984
parentaec28f3ad3b4605951b544d2813c7de3a17ecc35
lib: replace conn [write]sockfd members by index

The `connectdata` members `sockfd` and `writesockfd` needed to by either
CURL_SOCKET_BAD or a copy of one of `conn->sock[2]`. When equal to one,
that index was used to send/recv/poll the proper socket or connection
filter chain.

Replace those with `send_idx` and `recv_idx` which are either -1, 0 or 1
to indicate which socket/filter to send/receive on.

Closes #18179
lib/cfilters.c
lib/http.c
lib/multi.c
lib/transfer.c
lib/url.c
lib/urldata.h
lib/vssh/libssh.c
lib/vssh/libssh2.c
lib/vssh/wolfssh.c