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
85671a69
Commit
85671a69
authored
Apr 18, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update doc
parent
a3fa2574
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
lib/nghttp2_hd.h
lib/nghttp2_hd.h
+1
-0
lib/nghttp2_session.c
lib/nghttp2_session.c
+5
-0
No files found.
lib/nghttp2_hd.h
View file @
85671a69
...
...
@@ -51,6 +51,7 @@
/* Exported for unit test */
#define NGHTTP2_STATIC_TABLE_LENGTH 61
/* Generated by genlibtokenlookup.py */
typedef
enum
{
NGHTTP2_TOKEN__AUTHORITY
=
0
,
NGHTTP2_TOKEN__METHOD
=
1
,
...
...
lib/nghttp2_session.c
View file @
85671a69
...
...
@@ -2244,12 +2244,17 @@ static int session_close_stream_on_goaway(nghttp2_session *session,
static
void
session_outbound_item_schedule
(
nghttp2_session
*
session
,
nghttp2_outbound_item
*
item
,
int32_t
weight
)
{
/* Schedule next write. Offset proportional to the write size.
Stream with heavier weight is scheduled earlier. */
size_t
delta
=
item
->
frame
.
hd
.
length
*
NGHTTP2_MAX_WEIGHT
/
weight
;
if
(
session
->
last_cycle
<
item
->
cycle
)
{
session
->
last_cycle
=
item
->
cycle
;
}
/* We pretend to ignore overflow given that the value range of
item->cycle, which is uint64_t. nghttp2 won't explode even when
overflow occurs, there might be some disturbance of priority. */
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