http2: fix GOAWAY message sent to server
- fix typo in GOAWAY debug message "shutown" -> "shutdown" Closes https://github.com/curl/curl/pull/14623
This commit is contained in:
parent
eb5c3f3707
commit
c8d71e598d
@ -1186,7 +1186,8 @@ static CURLcode cf_h2_proxy_shutdown(struct Curl_cfilter *cf,
|
|||||||
if(!ctx->sent_goaway) {
|
if(!ctx->sent_goaway) {
|
||||||
rv = nghttp2_submit_goaway(ctx->h2, NGHTTP2_FLAG_NONE,
|
rv = nghttp2_submit_goaway(ctx->h2, NGHTTP2_FLAG_NONE,
|
||||||
0, 0,
|
0, 0,
|
||||||
(const uint8_t *)"shutown", sizeof("shutown"));
|
(const uint8_t *)"shutdown",
|
||||||
|
sizeof("shutdown"));
|
||||||
if(rv) {
|
if(rv) {
|
||||||
failf(data, "nghttp2_submit_goaway() failed: %s(%d)",
|
failf(data, "nghttp2_submit_goaway() failed: %s(%d)",
|
||||||
nghttp2_strerror(rv), rv);
|
nghttp2_strerror(rv), rv);
|
||||||
|
|||||||
@ -2526,7 +2526,8 @@ static CURLcode cf_h2_shutdown(struct Curl_cfilter *cf,
|
|||||||
if(!ctx->sent_goaway) {
|
if(!ctx->sent_goaway) {
|
||||||
rv = nghttp2_submit_goaway(ctx->h2, NGHTTP2_FLAG_NONE,
|
rv = nghttp2_submit_goaway(ctx->h2, NGHTTP2_FLAG_NONE,
|
||||||
ctx->local_max_sid, 0,
|
ctx->local_max_sid, 0,
|
||||||
(const uint8_t *)"shutown", sizeof("shutown"));
|
(const uint8_t *)"shutdown",
|
||||||
|
sizeof("shutdown"));
|
||||||
if(rv) {
|
if(rv) {
|
||||||
failf(data, "nghttp2_submit_goaway() failed: %s(%d)",
|
failf(data, "nghttp2_submit_goaway() failed: %s(%d)",
|
||||||
nghttp2_strerror(rv), rv);
|
nghttp2_strerror(rv), rv);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user