mirror of
https://github.com/curl/curl.git
synced 2025-03-25 15:50:32 +08: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[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 */
|
||||
|
@ -24,7 +24,7 @@ http
|
||||
attempt connect to non-listening socket
|
||||
</name>
|
||||
<command>
|
||||
%HOSTIP:%NOLISTENPORT
|
||||
--trace-config all %HOSTIP:%NOLISTENPORT
|
||||
</command>
|
||||
</client>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user