mirror of
https://github.com/curl/curl.git
synced 2026-08-05 05:26:12 +03:00
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:
parent
5b73a7b637
commit
35b1c1585b
4 changed files with 53 additions and 41 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue