mirror of
https://github.com/curl/curl.git
synced 2025-09-13 23:52:42 +03:00
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:
parent
e556470c23
commit
d0cb2c7a1f
|
@ -1356,6 +1356,8 @@ static struct connectdata *allocate_conn(struct Curl_easy *data)
|
||||||
|
|
||||||
conn->sock[FIRSTSOCKET] = CURL_SOCKET_BAD; /* no file descriptor */
|
conn->sock[FIRSTSOCKET] = CURL_SOCKET_BAD; /* no file descriptor */
|
||||||
conn->sock[SECONDARYSOCKET] = 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->connection_id = -1; /* no ID */
|
||||||
conn->port = -1; /* unknown at this point */
|
conn->port = -1; /* unknown at this point */
|
||||||
conn->remote_port = -1; /* unknown at this point */
|
conn->remote_port = -1; /* unknown at this point */
|
||||||
|
|
|
@ -24,7 +24,7 @@ http
|
||||||
attempt connect to non-listening socket
|
attempt connect to non-listening socket
|
||||||
</name>
|
</name>
|
||||||
<command>
|
<command>
|
||||||
%HOSTIP:%NOLISTENPORT
|
--trace-config all %HOSTIP:%NOLISTENPORT
|
||||||
</command>
|
</command>
|
||||||
</client>
|
</client>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user