urldata: tweak the UserDefined struct

By better sticking to listing the struct members sorted by size, this
struct is now 48 bytes smaller on my fairly maximized build, without
removing anything.

Turned 'connect_only' into two bits instead of an unsigned char with two
magic values.

Also put the 'gssapi_delegation' field within ifdef HAVE_GSSAPI.

Closes #16097
This commit is contained in:
Daniel Stenberg 2025-01-27 09:34:57 +01:00
parent 5b73a7b637
commit 35b1c1585b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 53 additions and 41 deletions

View file

@ -2048,7 +2048,7 @@ static CURLMcode state_do(struct Curl_easy *data,
}
}
if(data->set.connect_only == 1) {
if(data->set.connect_only && !data->set.connect_only_ws) {
/* keep connection open for application to use the socket */
connkeep(data->conn, "CONNECT_ONLY");
multistate(data, MSTATE_DONE);