mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-09 19:48:53 +08:00
Return NGHTTP2_ERR_BUFFER_ERROR from nghttp2_hd_{deflate,inflate}_hd
It is generally useful to know what is the cause of the error. Since we expose HPACK API, it is friendly to tell application the insufficient buffer size is a culprit.
This commit is contained in:
@@ -200,6 +200,10 @@ typedef enum {
|
||||
* Invalid argument passed.
|
||||
*/
|
||||
NGHTTP2_ERR_INVALID_ARGUMENT = -501,
|
||||
/**
|
||||
* Ouf of buffer space.
|
||||
*/
|
||||
NGHTTP2_ERR_BUFFER_ERROR = -502,
|
||||
/**
|
||||
* The specified protocol version is not supported.
|
||||
*/
|
||||
@@ -2811,6 +2815,8 @@ typedef enum {
|
||||
* Out of memory.
|
||||
* :enum:`NGHTTP2_ERR_HEADER_COMP`
|
||||
* Inflation process has failed.
|
||||
* :enum:`NGHTTP2_ERR_BUFFER_ERROR`
|
||||
* The heder field name or value is too large.
|
||||
*
|
||||
* Example follows::
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user