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
af24f839
Commit
af24f839
authored
Jan 17, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Fix nghttp2 error code use in SPDY upstream
parent
62b9e4bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/shrpx_spdy_upstream.cc
src/shrpx_spdy_upstream.cc
+4
-2
No files found.
src/shrpx_spdy_upstream.cc
View file @
af24f839
...
...
@@ -642,14 +642,16 @@ int SpdyUpstream::downstream_error(DownstreamConnection *dconn, int events) {
// stream, we don't have to do anything since response was
// complete.
if
(
downstream
->
get_upgraded
())
{
rst_stream
(
downstream
,
NGHTTP2_NO_ERROR
);
// We want "NO_ERROR" error code but SPDY does not have such
// code for RST_STREAM.
rst_stream
(
downstream
,
SPDYLAY_INTERNAL_ERROR
);
}
}
else
{
if
(
downstream
->
get_response_state
()
==
Downstream
::
HEADER_COMPLETE
)
{
if
(
downstream
->
get_upgraded
())
{
on_downstream_body_complete
(
downstream
);
}
else
{
rst_stream
(
downstream
,
NGHTTP2
_INTERNAL_ERROR
);
rst_stream
(
downstream
,
SPDYLAY
_INTERNAL_ERROR
);
}
}
else
{
unsigned
int
status
;
...
...
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