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
4cad48da
Commit
4cad48da
authored
Aug 29, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset cycle to 0 if stream has only 1 direct descendant
parent
e6566a1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
lib/nghttp2_stream.c
lib/nghttp2_stream.c
+12
-7
No files found.
lib/nghttp2_stream.c
View file @
4cad48da
...
...
@@ -201,18 +201,23 @@ void nghttp2_stream_reschedule(nghttp2_stream *stream) {
dep_stream
=
stream
->
dep_prev
;
for
(;
dep_stream
;
stream
=
dep_stream
,
dep_stream
=
dep_stream
->
dep_prev
)
{
dep_stream
->
descendant_last_cycle
=
nghttp2_max
(
dep_stream
->
descendant_last_cycle
,
stream
->
cycle
);
if
(
nghttp2_pq_size
(
&
dep_stream
->
obq
)
==
1
)
{
dep_stream
->
descendant_last_cycle
=
0
;
stream
->
cycle
=
0
;
}
else
{
dep_stream
->
descendant_last_cycle
=
nghttp2_max
(
dep_stream
->
descendant_last_cycle
,
stream
->
cycle
);
stream
->
cycle
=
stream_next_cycle
(
stream
,
dep_stream
->
descendant_last_cycle
);
stream
->
cycle
=
stream_next_cycle
(
stream
,
dep_stream
->
descendant_last_cycle
);
nghttp2_pq_remove
(
&
dep_stream
->
obq
,
&
stream
->
pq_entry
);
nghttp2_pq_push
(
&
dep_stream
->
obq
,
&
stream
->
pq_entry
);
}
DEBUGF
(
fprintf
(
stderr
,
"stream: stream=%d obq resched cycle=%ld
\n
"
,
stream
->
stream_id
,
stream
->
cycle
));
nghttp2_pq_remove
(
&
dep_stream
->
obq
,
&
stream
->
pq_entry
);
nghttp2_pq_push
(
&
dep_stream
->
obq
,
&
stream
->
pq_entry
);
dep_stream
->
last_writelen
=
stream
->
last_writelen
;
}
}
...
...
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