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:
Stefan Eissing 2026-03-17 13:57:42 +01:00 committed by Daniel Stenberg
parent 1098e1044e
commit aeee5dd616
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
9 changed files with 14 additions and 13 deletions

View file

@ -1821,7 +1821,7 @@ out:
/* Defer flushing during the connect phase so that the SETTINGS and
* other initial frames are sent together with the first request.
* Unless we are 'connect_only' where the request will never come. */
if(!cf->connected && !cf->conn->connect_only)
if(!cf->connected && !cf->conn->bits.connect_only)
return CURLE_OK;
return nw_out_flush(cf, data);
}