mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:41:41 +03:00
parent
20ef31a751
commit
51369ae78b
2 changed files with 10 additions and 8 deletions
|
|
@ -1501,15 +1501,16 @@ static bool cf_h2_proxy_is_alive(struct Curl_cfilter *cf,
|
|||
bool *input_pending)
|
||||
{
|
||||
struct cf_h2_proxy_ctx *ctx = cf->ctx;
|
||||
CURLcode result;
|
||||
bool alive;
|
||||
struct cf_call_data save;
|
||||
|
||||
*input_pending = FALSE;
|
||||
CF_DATA_SAVE(save, cf, data);
|
||||
result = (ctx && ctx->h2 && proxy_h2_connisalive(cf, data, input_pending));
|
||||
alive = (ctx && ctx->h2 && proxy_h2_connisalive(cf, data, input_pending));
|
||||
CURL_TRC_CF(data, cf, "[0] conn alive -> %d, input_pending=%d",
|
||||
result, *input_pending);
|
||||
alive, *input_pending);
|
||||
CF_DATA_RESTORE(cf, save);
|
||||
return result;
|
||||
return alive;
|
||||
}
|
||||
|
||||
static CURLcode cf_h2_proxy_query(struct Curl_cfilter *cf,
|
||||
|
|
|
|||
|
|
@ -2713,15 +2713,16 @@ static bool cf_h2_is_alive(struct Curl_cfilter *cf,
|
|||
bool *input_pending)
|
||||
{
|
||||
struct cf_h2_ctx *ctx = cf->ctx;
|
||||
CURLcode result;
|
||||
bool alive;
|
||||
struct cf_call_data save;
|
||||
|
||||
*input_pending = FALSE;
|
||||
CF_DATA_SAVE(save, cf, data);
|
||||
result = (ctx && ctx->h2 && http2_connisalive(cf, data, input_pending));
|
||||
alive = (ctx && ctx->h2 && http2_connisalive(cf, data, input_pending));
|
||||
CURL_TRC_CF(data, cf, "conn alive -> %d, input_pending=%d",
|
||||
result, *input_pending);
|
||||
alive, *input_pending);
|
||||
CF_DATA_RESTORE(cf, save);
|
||||
return result;
|
||||
return alive;
|
||||
}
|
||||
|
||||
static CURLcode cf_h2_keep_alive(struct Curl_cfilter *cf,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue