mirror of
https://github.com/curl/curl.git
synced 2026-08-26 19:13:33 +03:00
connection bits: move 'connect_only' here
Move the bit `connection_only` from `connectdata` to `ConnectBits`. Since we keep all other bits there, seems the correct place. Closes #20959
This commit is contained in:
parent
1098e1044e
commit
aeee5dd616
9 changed files with 14 additions and 13 deletions
|
|
@ -739,7 +739,7 @@ static bool url_match_connect_config(struct connectdata *conn,
|
|||
struct url_conn_match *m)
|
||||
{
|
||||
/* connect-only or to-be-closed connections will not be reused */
|
||||
if(conn->connect_only || conn->bits.close || conn->bits.no_reuse)
|
||||
if(conn->bits.connect_only || conn->bits.close || conn->bits.no_reuse)
|
||||
return FALSE;
|
||||
|
||||
/* ip_version must match */
|
||||
|
|
@ -1402,7 +1402,7 @@ static struct connectdata *allocate_conn(struct Curl_easy *data)
|
|||
conn->bits.ftp_use_eprt = data->set.ftp_use_eprt;
|
||||
#endif
|
||||
conn->ip_version = data->set.ipver;
|
||||
conn->connect_only = (bool)data->set.connect_only;
|
||||
conn->bits.connect_only = (bool)data->set.connect_only;
|
||||
conn->transport_wanted = TRNSPRT_TCP; /* most of them are TCP streams */
|
||||
|
||||
/* Store the local bind parameters that will be used for this connection */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue