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
bc21edf5
Commit
bc21edf5
authored
Nov 19, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Interleave streams with the same priority
parent
e5e4fc9d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lib/nghttp2_session.c
lib/nghttp2_session.c
+4
-1
No files found.
lib/nghttp2_session.c
View file @
bc21edf5
...
@@ -1563,7 +1563,7 @@ static int nghttp2_session_after_frame_sent(nghttp2_session *session)
...
@@ -1563,7 +1563,7 @@ static int nghttp2_session_after_frame_sent(nghttp2_session *session)
/* If priority of this stream is higher or equal to other stream
/* If priority of this stream is higher or equal to other stream
waiting at the top of the queue, we continue to send this
waiting at the top of the queue, we continue to send this
data. */
data. */
if
(
next_item
==
NULL
||
session
->
aob
.
item
->
pri
<
=
next_item
->
pri
)
{
if
(
next_item
==
NULL
||
session
->
aob
.
item
->
pri
<
next_item
->
pri
)
{
size_t
next_readmax
;
size_t
next_readmax
;
nghttp2_stream
*
stream
;
nghttp2_stream
*
stream
;
stream
=
nghttp2_session_get_stream
(
session
,
data_frame
->
hd
.
stream_id
);
stream
=
nghttp2_session_get_stream
(
session
,
data_frame
->
hd
.
stream_id
);
...
@@ -1607,6 +1607,9 @@ static int nghttp2_session_after_frame_sent(nghttp2_session *session)
...
@@ -1607,6 +1607,9 @@ static int nghttp2_session_after_frame_sent(nghttp2_session *session)
session
->
aob
.
framebufoff
=
0
;
session
->
aob
.
framebufoff
=
0
;
}
}
}
else
{
}
else
{
/* Update seq to interleave other streams with the same
priority. */
session
->
aob
.
item
->
seq
=
session
->
next_seq
++
;
r
=
nghttp2_pq_push
(
&
session
->
ob_pq
,
session
->
aob
.
item
);
r
=
nghttp2_pq_push
(
&
session
->
ob_pq
,
session
->
aob
.
item
);
if
(
r
==
0
)
{
if
(
r
==
0
)
{
session
->
aob
.
item
=
NULL
;
session
->
aob
.
item
=
NULL
;
...
...
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