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:
Stefan Eissing 2026-07-23 14:17:13 +02:00 committed by Daniel Stenberg
parent a954d87f0b
commit e093c67f1c
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
26 changed files with 157 additions and 226 deletions

View file

@ -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);

View file

@ -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;