Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
431f78f0
Commit
431f78f0
authored
Oct 27, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename NGHTTP2_ERR_FRAME_TOO_LARGE as NGHTTP2_ERR_FRAME_SIZE_ERROR
parent
5ace8983
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
lib/includes/nghttp2/nghttp2.h
lib/includes/nghttp2/nghttp2.h
+2
-2
lib/nghttp2_helper.c
lib/nghttp2_helper.c
+2
-2
lib/nghttp2_session.c
lib/nghttp2_session.c
+3
-3
No files found.
lib/includes/nghttp2/nghttp2.h
View file @
431f78f0
...
...
@@ -250,9 +250,9 @@ typedef enum {
*/
NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE
=
-
521
,
/**
* The length of the frame is
too large
.
* The length of the frame is
invalid, either too large or too small
.
*/
NGHTTP2_ERR_FRAME_
TOO_LARGE
=
-
522
,
NGHTTP2_ERR_FRAME_
SIZE_ERROR
=
-
522
,
/**
* Header block inflate/deflate error.
*/
...
...
lib/nghttp2_helper.c
View file @
431f78f0
...
...
@@ -262,8 +262,8 @@ const char* nghttp2_strerror(int error_code)
return
"Gzip error"
;
case
NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE
:
return
"The user callback function failed due to the temporal error"
;
case
NGHTTP2_ERR_FRAME_
TOO_LARGE
:
return
"The length of the frame is
too large
"
;
case
NGHTTP2_ERR_FRAME_
SIZE_ERROR
:
return
"The length of the frame is
invalid
"
;
case
NGHTTP2_ERR_HEADER_COMP
:
return
"Header compression/decompression error"
;
case
NGHTTP2_ERR_NOMEM
:
...
...
lib/nghttp2_session.c
View file @
431f78f0
...
...
@@ -2706,7 +2706,7 @@ static int nghttp2_session_process_ctrl_frame(nghttp2_session *session)
session
->
iframe
.
buf
,
session
->
iframe
.
buflen
,
&
session
->
hd_inflater
);
}
else
if
(
session
->
iframe
.
error_code
==
NGHTTP2_ERR_FRAME_
TOO_LARGE
)
{
}
else
if
(
session
->
iframe
.
error_code
==
NGHTTP2_ERR_FRAME_
SIZE_ERROR
)
{
r
=
nghttp2_frame_unpack_headers_without_nv
(
&
frame
->
headers
,
session
->
iframe
.
headbuf
,
sizeof
(
session
->
iframe
.
headbuf
),
...
...
@@ -3204,7 +3204,7 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session,
/* TODO Make payloadlen configurable up to
NGHTTP2_MAX_FRAME_LENGTH */
if
(
session
->
iframe
.
payloadlen
>
NGHTTP2_MAX_HTTP_FRAME_LENGTH
)
{
session
->
iframe
.
error_code
=
NGHTTP2_ERR_FRAME_
TOO_LARGE
;
session
->
iframe
.
error_code
=
NGHTTP2_ERR_FRAME_
SIZE_ERROR
;
session
->
iframe
.
state
=
NGHTTP2_RECV_PAYLOAD_IGN
;
/* Make inflater fail forcibly to disallow reception of
further HEADERS or PUSH_PROMISE */
...
...
@@ -3322,7 +3322,7 @@ ssize_t nghttp2_session_mem_recv(nghttp2_session *session,
connection-level window size. */
}
if
(
session
->
iframe
.
payloadlen
==
session
->
iframe
.
off
)
{
if
(
session
->
iframe
.
error_code
!=
NGHTTP2_ERR_FRAME_
TOO_LARGE
)
{
if
(
session
->
iframe
.
error_code
!=
NGHTTP2_ERR_FRAME_
SIZE_ERROR
)
{
if
(
!
nghttp2_frame_is_data_frame
(
session
->
iframe
.
headbuf
))
{
/* TODO Introduce callback which is invoked when payload is
ignored, especially for frame too large */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment