mirror of
https://github.com/curl/curl.git
synced 2026-08-05 02:56:13 +03:00
connect: connection close tweaks
- connclose/streamclose/connkeep() remove description string that was never used anywhere. Add trace statements where reasons for closing were not already traced and maybe not obvious. - multi_remove_handle: only lookup former connection in pool when transfer is set to connect only - test1554: adapt expectations now that pool is less often locked Closes #22379
This commit is contained in:
parent
a954d87f0b
commit
e093c67f1c
26 changed files with 157 additions and 226 deletions
|
|
@ -2238,7 +2238,7 @@ static CURLcode myssh_in_SESSION_FREE(struct Curl_easy *data,
|
|||
/* the code we are about to return */
|
||||
result = sshc->actualcode;
|
||||
memset(sshc, 0, sizeof(struct ssh_conn));
|
||||
connclose(data->conn, "SSH session free");
|
||||
connclose(data->conn);
|
||||
sshc->state = SSH_SESSION_FREE; /* current */
|
||||
sshc->nextstate = SSH_NO_STATE;
|
||||
myssh_to(data, sshc, SSH_STOP);
|
||||
|
|
|
|||
|
|
@ -2850,7 +2850,7 @@ static CURLcode ssh_state_session_free(struct Curl_easy *data,
|
|||
if(result)
|
||||
return result;
|
||||
memset(sshc, 0, sizeof(struct ssh_conn));
|
||||
connclose(conn, "SSH session free");
|
||||
connclose(conn);
|
||||
sshc->state = SSH_SESSION_FREE; /* current */
|
||||
myssh_to(data, sshc, SSH_STOP);
|
||||
return CURLE_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue