mirror of
https://github.com/curl/curl.git
synced 2026-07-27 07:37:15 +03:00
build: fix disable-verbose
Fix compile error when building with `--disable-verbose`.
Adjust pytest to skip when curl is not a debug build but needs
traces.
Follow-up to b453a447ce
Closes #18053
This commit is contained in:
parent
44f5307891
commit
8e1d817cb3
12 changed files with 34 additions and 2 deletions
|
|
@ -596,17 +596,21 @@ static void multi_done_locked(struct connectdata *conn,
|
|||
#endif
|
||||
) || conn->bits.close
|
||||
|| (mdctx->premature && !Curl_conn_is_multiplex(conn, FIRSTSOCKET))) {
|
||||
#ifndef CURL_DISABLE_VERBOSE_STRINGS
|
||||
CURL_TRC_M(data, "multi_done, terminating conn #%" FMT_OFF_T " to %s:%d, "
|
||||
"forbid=%d, close=%d, premature=%d, conn_multiplex=%d",
|
||||
conn->connection_id, host, port, data->set.reuse_forbid,
|
||||
conn->bits.close, mdctx->premature,
|
||||
Curl_conn_is_multiplex(conn, FIRSTSOCKET));
|
||||
#endif
|
||||
connclose(conn, "disconnecting");
|
||||
Curl_conn_terminate(data, conn, mdctx->premature);
|
||||
}
|
||||
else if(!Curl_conn_get_max_concurrent(data, conn, FIRSTSOCKET)) {
|
||||
#ifndef CURL_DISABLE_VERBOSE_STRINGS
|
||||
CURL_TRC_M(data, "multi_done, conn #%" FMT_OFF_T " to %s:%d was shutdown"
|
||||
" by server, not reusing", conn->connection_id, host, port);
|
||||
#endif
|
||||
connclose(conn, "server shutdown");
|
||||
Curl_conn_terminate(data, conn, mdctx->premature);
|
||||
}
|
||||
|
|
@ -615,8 +619,10 @@ static void multi_done_locked(struct connectdata *conn,
|
|||
if(Curl_cpool_conn_now_idle(data, conn)) {
|
||||
/* connection kept in the cpool */
|
||||
data->state.lastconnect_id = conn->connection_id;
|
||||
#ifndef CURL_DISABLE_VERBOSE_STRINGS
|
||||
infof(data, "Connection #%" FMT_OFF_T " to host %s:%d left intact",
|
||||
conn->connection_id, host, port);
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
/* connection was removed from the cpool and destroyed. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue