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
2224b98c
Commit
2224b98c
authored
Jun 21, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicated dependency validation in nghttp2_session_reprioritize_stream
parent
a7031da3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
lib/nghttp2_session.c
lib/nghttp2_session.c
+2
-5
lib/nghttp2_session.h
lib/nghttp2_session.h
+2
-1
No files found.
lib/nghttp2_session.c
View file @
2224b98c
...
...
@@ -601,15 +601,12 @@ nghttp2_session_reprioritize_stream(nghttp2_session *session,
nghttp2_priority_spec
pri_spec_default
;
const
nghttp2_priority_spec
*
pri_spec
=
pri_spec_in
;
assert
(
pri_spec
->
stream_id
!=
stream
->
stream_id
);
if
(
!
nghttp2_stream_in_dep_tree
(
stream
))
{
return
0
;
}
if
(
pri_spec
->
stream_id
==
stream
->
stream_id
)
{
return
nghttp2_session_terminate_session_with_reason
(
session
,
NGHTTP2_PROTOCOL_ERROR
,
"depend on itself"
);
}
if
(
pri_spec
->
stream_id
!=
0
)
{
dep_stream
=
nghttp2_session_get_stream_raw
(
session
,
pri_spec
->
stream_id
);
...
...
lib/nghttp2_session.h
View file @
2224b98c
...
...
@@ -731,7 +731,8 @@ int nghttp2_session_update_local_settings(nghttp2_session *session,
/*
* Re-prioritize |stream|. The new priority specification is
* |pri_spec|.
* |pri_spec|. Caller must ensure that stream->hd.stream_id !=
* pri_spec->stream_id.
*
* This function returns 0 if it succeeds, or one of the following
* negative error codes:
...
...
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