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
1dfe2f86
Commit
1dfe2f86
authored
Mar 22, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add nghttp2_session_get_stream_remote_window_size public API function
parent
fac42788
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
lib/includes/nghttp2/nghttp2.h
lib/includes/nghttp2/nghttp2.h
+12
-0
lib/nghttp2_session.c
lib/nghttp2_session.c
+13
-0
No files found.
lib/includes/nghttp2/nghttp2.h
View file @
1dfe2f86
...
...
@@ -1766,6 +1766,18 @@ int32_t nghttp2_session_get_effective_recv_data_length
int32_t
nghttp2_session_get_effective_local_window_size
(
nghttp2_session
*
session
);
/**
* @function
*
* Returns the remote window size for a given stream |stream_id|.
* This is the amount of flow-controlled payload (e.g., DATA) that the
* local endpoint can send without WINDOW_UPDATE.
*
* This function returns -1 if it fails.
*/
int32_t
nghttp2_session_get_stream_remote_window_size
(
nghttp2_session
*
session
,
int32_t
stream_id
);
/**
* @function
*
...
...
lib/nghttp2_session.c
View file @
1dfe2f86
...
...
@@ -4666,6 +4666,19 @@ int32_t nghttp2_session_get_effective_local_window_size
return
session
->
local_window_size
;
}
int32_t
nghttp2_session_get_stream_remote_window_size
(
nghttp2_session
*
session
,
int32_t
stream_id
)
{
nghttp2_stream
*
stream
;
stream
=
nghttp2_session_get_stream
(
session
,
stream_id
);
if
(
stream
==
NULL
)
{
return
-
1
;
}
return
nghttp2_session_next_data_read
(
session
,
stream
);
}
int
nghttp2_session_upgrade
(
nghttp2_session
*
session
,
const
uint8_t
*
settings_payload
,
size_t
settings_payloadlen
,
...
...
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