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
e960c56a
Commit
e960c56a
authored
Jan 17, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't call on_request_recv_callback if header decompression failed
parent
3882bbeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
lib/nghttp2_session.c
lib/nghttp2_session.c
+20
-5
No files found.
lib/nghttp2_session.c
View file @
e960c56a
...
...
@@ -1891,6 +1891,8 @@ static int nghttp2_session_validate_request_headers(nghttp2_session *session,
* Out of memory.
* NGHTTP2_ERR_PAUSE
* The callback function returned NGHTTP2_ERR_PAUSE
* NGHTTP2_ERR_HEADER_COMP
* Header decompression failed
*/
static
int
inflate_header_block
(
nghttp2_session
*
session
,
nghttp2_frame
*
frame
,
int
call_header_cb
)
...
...
@@ -1915,8 +1917,12 @@ static int inflate_header_block(nghttp2_session *session, nghttp2_frame *frame,
return
rv
;
}
}
return
nghttp2_session_terminate_session
(
session
,
NGHTTP2_COMPRESSION_ERROR
);
rv
=
nghttp2_session_terminate_session
(
session
,
NGHTTP2_COMPRESSION_ERROR
);
if
(
rv
!=
0
)
{
return
rv
;
}
return
NGHTTP2_ERR_HEADER_COMP
;
}
session
->
iframe
.
inflate_offset
+=
rv
;
if
(
final
)
{
...
...
@@ -2010,7 +2016,7 @@ static int nghttp2_session_inflate_handle_invalid_stream
{
int
rv
;
rv
=
session_skip_inflate_header_block
(
session
,
frame
);
if
(
rv
!=
0
)
{
if
(
nghttp2_is_fatal
(
rv
)
)
{
return
rv
;
}
return
nghttp2_session_handle_invalid_stream
(
session
,
frame
,
error_code
);
...
...
@@ -2040,7 +2046,7 @@ static int nghttp2_session_inflate_handle_invalid_connection
{
int
rv
;
rv
=
session_skip_inflate_header_block
(
session
,
frame
);
if
(
rv
!=
0
)
{
if
(
nghttp2_is_fatal
(
rv
)
)
{
return
rv
;
}
return
nghttp2_session_handle_invalid_connection
(
session
,
frame
,
error_code
);
...
...
@@ -2060,6 +2066,8 @@ static int nghttp2_session_inflate_handle_invalid_connection
* Out of memory.
* NGHTTP2_ERR_PAUSE
* The callback function returned NGHTTP2_ERR_PAUSE
* NGHTTP2_ERR_HEADER_COMP
* Header decompression failed
*/
static
int
session_end_request_headers_received
(
nghttp2_session
*
session
,
nghttp2_frame
*
frame
)
...
...
@@ -2096,6 +2104,8 @@ static int session_end_request_headers_received(nghttp2_session *session,
* Out of memory.
* NGHTTP2_ERR_PAUSE
* The callback function returned NGHTTP2_ERR_PAUSE
* NGHTTP2_ERR_HEADER_COMP
* Header decompression failed
*/
static
int
session_end_response_headers_received
(
nghttp2_session
*
session
,
nghttp2_frame
*
frame
)
...
...
@@ -2133,6 +2143,8 @@ static int session_end_response_headers_received(nghttp2_session *session,
* Out of memory.
* NGHTTP2_ERR_PAUSE
* The callback function returned NGHTTP2_ERR_PAUSE
* NGHTTP2_ERR_HEADER_COMP
* Header decompression failed
*/
static
int
session_end_headers_received
(
nghttp2_session
*
session
,
nghttp2_frame
*
frame
)
...
...
@@ -3475,7 +3487,10 @@ static int session_continue(nghttp2_session *session)
default:
break
;
}
return
rv
;
if
(
rv
==
NGHTTP2_ERR_PAUSE
||
nghttp2_is_fatal
(
rv
))
{
return
rv
;
}
return
0
;
}
ssize_t
nghttp2_session_mem_recv
(
nghttp2_session
*
session
,
...
...
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