summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-02-24 09:28:12 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-02-24 11:00:12 +0100
commit069403703277964a54434af16172a71566cf6fc4 (patch)
treeb79874ba69e727a8a54a3a3651d5c3f87b372ae4
parent145d0803bbaf14988bd9620fbb7f85bc0c8b4838 (diff)
downloadcurl-069403703277964a54434af16172a71566cf6fc4.tar.gz
http2: move two infof calls to debug-h2-only
and remove a superflous one Ref: https://github.com/curl/curl/discussions/8498 Closes #8502
-rw-r--r--lib/http2.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/http2.c b/lib/http2.c
index b8c9773a0..125436584 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -201,9 +201,9 @@ static bool http2_connisdead(struct Curl_easy *data, struct connectdata *conn)
nread = ((Curl_recv *)httpc->recv_underlying)(
data, FIRSTSOCKET, httpc->inbuf, H2_BUFSIZE, &result);
if(nread != -1) {
- infof(data,
- "%d bytes stray data read before trying h2 connection",
- (int)nread);
+ H2BUGF(infof(data,
+ "%d bytes stray data read before trying h2 connection",
+ (int)nread));
httpc->nread_inbuf = 0;
httpc->inbuflen = nread;
if(h2_process_pending_input(data, httpc, &result) < 0)
@@ -1236,7 +1236,7 @@ void Curl_http2_done(struct Curl_easy *data, bool premature)
(void)nghttp2_session_send(httpc->h2);
if(http->stream_id == httpc->pause_stream_id) {
- infof(data, "stopped the pause stream!");
+ H2BUGF(infof(data, "stopped the pause stream!"));
httpc->pause_stream_id = 0;
}
}
@@ -2046,8 +2046,6 @@ CURLcode Curl_http2_setup(struct Curl_easy *data,
httpc->pause_stream_id = 0;
httpc->drain_total = 0;
- infof(data, "Connection state changed (HTTP/2 confirmed)");
-
return CURLE_OK;
}