url: init conn->sockfd and writesockfd to CURL_SOCKET_BAD

Also add more tracing to test 19

Follow-up to a0f9480

Fixes #12657
Closes #12659
This commit is contained in:
Stefan Eissing 2024-01-08 15:02:12 +01:00 committed by Daniel Stenberg
parent e556470c23
commit d0cb2c7a1f
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 3 additions and 1 deletions

View File

@ -1356,6 +1356,8 @@ static struct connectdata *allocate_conn(struct Curl_easy *data)
conn->sock[FIRSTSOCKET] = CURL_SOCKET_BAD; /* no file descriptor */
conn->sock[SECONDARYSOCKET] = CURL_SOCKET_BAD; /* no file descriptor */
conn->sockfd = CURL_SOCKET_BAD;
conn->writesockfd = CURL_SOCKET_BAD;
conn->connection_id = -1; /* no ID */
conn->port = -1; /* unknown at this point */
conn->remote_port = -1; /* unknown at this point */

View File

@ -24,7 +24,7 @@ http
attempt connect to non-listening socket
</name>
<command>
%HOSTIP:%NOLISTENPORT
--trace-config all %HOSTIP:%NOLISTENPORT
</command>
</client>