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
73b77964
Commit
73b77964
authored
Aug 15, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset last_cycle to 0 if queue gets empty
parent
8ce8b2af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
lib/nghttp2_session.c
lib/nghttp2_session.c
+9
-1
No files found.
lib/nghttp2_session.c
View file @
73b77964
...
@@ -2038,6 +2038,11 @@ nghttp2_session_pop_next_ob_item(nghttp2_session *session) {
...
@@ -2038,6 +2038,11 @@ nghttp2_session_pop_next_ob_item(nghttp2_session *session) {
!
nghttp2_pq_empty
(
&
session
->
ob_da_pq
))
{
!
nghttp2_pq_empty
(
&
session
->
ob_da_pq
))
{
item
=
nghttp2_pq_top
(
&
session
->
ob_da_pq
);
item
=
nghttp2_pq_top
(
&
session
->
ob_da_pq
);
nghttp2_pq_pop
(
&
session
->
ob_da_pq
);
nghttp2_pq_pop
(
&
session
->
ob_da_pq
);
if
(
nghttp2_pq_empty
(
&
session
->
ob_da_pq
))
{
session
->
last_cycle
=
0
;
}
item
->
queued
=
0
;
item
->
queued
=
0
;
return
item
;
return
item
;
}
}
...
@@ -2158,7 +2163,10 @@ static void session_outbound_item_schedule(nghttp2_session *session,
...
@@ -2158,7 +2163,10 @@ static void session_outbound_item_schedule(nghttp2_session *session,
/* We pretend to ignore overflow given that the value range of
/* We pretend to ignore overflow given that the value range of
item->cycle, which is uint64_t. nghttp2 won't explode even when
item->cycle, which is uint64_t. nghttp2 won't explode even when
overflow occurs, there might be some disturbance of priority. */
overflow occurs, there might be some disturbance of priority. We
also reset session->last_cycle to 0, when there is no DATA frame
to send (queue is empty), so the possibility of overflow is
generally very small. */
item
->
cycle
=
session
->
last_cycle
+
delta
;
item
->
cycle
=
session
->
last_cycle
+
delta
;
}
}
...
...
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