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
115d7133
Commit
115d7133
authored
Feb 12, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Don't check HEADERS category in on_frame_not_send_callback
parent
eb94603c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
src/shrpx_http2_session.cc
src/shrpx_http2_session.cc
+12
-12
src/shrpx_http2_upstream.cc
src/shrpx_http2_upstream.cc
+0
-1
No files found.
src/shrpx_http2_session.cc
View file @
115d7133
...
...
@@ -1122,24 +1122,24 @@ int on_frame_not_send_callback(nghttp2_session *session,
<<
nghttp2_strerror
(
lib_error_code
);
}
if
(
frame
->
hd
.
type
==
NGHTTP2_HEADERS
&&
frame
->
headers
.
cat
==
NGHTTP2_HCAT_REQUEST
)
{
// To avoid stream hanging around, flag Downstream::MSG_RESET and
//
terminate the upstream and downstream connections
.
lib_error_code
!=
NGHTTP2_ERR_STREAM_CLOSED
&&
lib_error_code
!=
NGHTTP2_ERR_STREAM_CLOSING
)
{
//
To avoid stream hanging around, flag Downstream::MSG_RESET
.
auto
sd
=
static_cast
<
StreamData
*>
(
nghttp2_session_get_stream_user_data
(
session
,
frame
->
hd
.
stream_id
));
if
(
!
sd
)
{
return
0
;
}
if
(
sd
->
dconn
)
{
auto
downstream
=
sd
->
dconn
->
get_downstream
();
if
(
!
downstream
||
downstream
->
get_downstream_stream_id
()
!=
frame
->
hd
.
stream_id
)
{
return
0
;
}
downstream
->
set_response_state
(
Downstream
::
MSG_RESET
);
call_downstream_readcb
(
http2session
,
downstream
);
if
(
!
sd
->
dconn
)
{
return
0
;
}
http2session
->
remove_stream_data
(
sd
);
auto
downstream
=
sd
->
dconn
->
get_downstream
();
if
(
!
downstream
||
downstream
->
get_downstream_stream_id
()
!=
frame
->
hd
.
stream_id
)
{
return
0
;
}
downstream
->
set_response_state
(
Downstream
::
MSG_RESET
);
call_downstream_readcb
(
http2session
,
downstream
);
}
return
0
;
}
...
...
src/shrpx_http2_upstream.cc
View file @
115d7133
...
...
@@ -605,7 +605,6 @@ int on_frame_not_send_callback(nghttp2_session *session,
<<
nghttp2_strerror
(
lib_error_code
);
}
if
(
frame
->
hd
.
type
==
NGHTTP2_HEADERS
&&
frame
->
headers
.
cat
==
NGHTTP2_HCAT_RESPONSE
&&
lib_error_code
!=
NGHTTP2_ERR_STREAM_CLOSED
&&
lib_error_code
!=
NGHTTP2_ERR_STREAM_CLOSING
)
{
// To avoid stream hanging around, issue RST_STREAM.
...
...
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