summaryrefslogtreecommitdiff
path: root/lib/strerror.c
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-02-17 21:36:59 +0900
committerJay Satiro <raysatiro@yahoo.com>2016-04-11 21:43:24 -0400
commit92c2a4c053f75bbfe8434379dbdd6acd714a2252 (patch)
tree8e9ddd90b90500e33da0cf006a11ee6b18b47334 /lib/strerror.c
parentb2a0376350cb4f788ca2cdff2e89a23bdc789888 (diff)
downloadcurl-92c2a4c053f75bbfe8434379dbdd6acd714a2252.tar.gz
http2: Add handling stream level error
Previously, when a stream was closed with other than NGHTTP2_NO_ERROR by RST_STREAM, underlying TCP connection was dropped. This is undesirable since there may be other streams multiplexed and they are very much fine. This change introduce new error code CURLE_HTTP2_STREAM, which indicates stream error that only affects the relevant stream, and connection should be kept open. The existing CURLE_HTTP2 means connection error in general. Ref: https://github.com/curl/curl/issues/659 Ref: https://github.com/curl/curl/pull/663
Diffstat (limited to 'lib/strerror.c')
-rw-r--r--lib/strerror.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/strerror.c b/lib/strerror.c
index cf1a04781..ac616f2c8 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -305,6 +305,9 @@ curl_easy_strerror(CURLcode error)
case CURLE_SSL_INVALIDCERTSTATUS:
return "SSL server certificate status verification FAILED";
+ case CURLE_HTTP2_STREAM:
+ return "Stream error in the HTTP/2 framing layer";
+
/* error codes not used by current libcurl */
case CURLE_OBSOLETE20:
case CURLE_OBSOLETE24: