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
594e1caa
Commit
594e1caa
authored
Jan 20, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup
parent
16497d91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
lib/nghttp2_session.c
lib/nghttp2_session.c
+5
-14
No files found.
lib/nghttp2_session.c
View file @
594e1caa
...
...
@@ -2824,8 +2824,12 @@ int nghttp2_session_on_push_promise_received(nghttp2_session *session,
(
session
,
frame
,
NGHTTP2_PROTOCOL_ERROR
);
}
session
->
last_recv_stream_id
=
frame
->
push_promise
.
promised_stream_id
;
if
(
!
nghttp2_session_is_my_stream_id
(
session
,
frame
->
hd
.
stream_id
))
{
return
nghttp2_session_inflate_handle_invalid_connection
(
session
,
frame
,
NGHTTP2_PROTOCOL_ERROR
);
}
stream
=
nghttp2_session_get_stream
(
session
,
frame
->
hd
.
stream_id
);
if
(
!
stream
)
{
if
(
!
stream
||
stream
->
state
==
NGHTTP2_STREAM_CLOSING
)
{
rv
=
session_skip_inflate_header_block
(
session
,
frame
);
if
(
rv
!=
0
)
{
return
rv
;
...
...
@@ -2834,10 +2838,6 @@ int nghttp2_session_on_push_promise_received(nghttp2_session *session,
(
session
,
frame
->
push_promise
.
promised_stream_id
,
NGHTTP2_REFUSED_STREAM
);
}
if
(
!
nghttp2_session_is_my_stream_id
(
session
,
frame
->
hd
.
stream_id
))
{
return
nghttp2_session_inflate_handle_invalid_connection
(
session
,
frame
,
NGHTTP2_PROTOCOL_ERROR
);
}
if
(
stream
->
shut_flags
&
NGHTTP2_SHUT_RD
)
{
rv
=
session_skip_inflate_header_block
(
session
,
frame
);
if
(
rv
!=
0
)
{
...
...
@@ -2853,15 +2853,6 @@ int nghttp2_session_on_push_promise_received(nghttp2_session *session,
(
session
,
frame
->
push_promise
.
promised_stream_id
,
NGHTTP2_PROTOCOL_ERROR
);
}
if
(
stream
->
state
==
NGHTTP2_STREAM_CLOSING
)
{
rv
=
session_skip_inflate_header_block
(
session
,
frame
);
if
(
rv
!=
0
)
{
return
rv
;
}
return
nghttp2_session_add_rst_stream
(
session
,
frame
->
push_promise
.
promised_stream_id
,
NGHTTP2_REFUSED_STREAM
);
}
promised_stream
=
nghttp2_session_open_stream
(
session
,
frame
->
push_promise
.
promised_stream_id
,
...
...
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