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
3c400bc6
Commit
3c400bc6
authored
Aug 09, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update doc
parent
edd74208
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
126 additions
and
37 deletions
+126
-37
_sources/apiref.txt
_sources/apiref.txt
+53
-16
apiref.html
apiref.html
+57
-17
genindex.html
genindex.html
+15
-3
objects.inv
objects.inv
+0
-0
searchindex.js
searchindex.js
+1
-1
No files found.
_sources/apiref.txt
View file @
3c400bc6
...
...
@@ -44,6 +44,11 @@ Macros
The lowest priority value
.. macro:: NGHTTP2_MAX_WINDOW_SIZE
The maximum window size
.. macro:: NGHTTP2_INITIAL_WINDOW_SIZE
...
...
@@ -180,6 +185,10 @@ Enums
(``-523``)
Header block inflate/deflate error.
.. macro:: NGHTTP2_ERR_FLOW_CONTROL
(``-524``)
Flow control error
.. macro:: NGHTTP2_ERR_FATAL
(``-900``)
...
...
@@ -374,13 +383,20 @@ Enums
Configuration options for :type:`nghttp2_session`.
.. macro:: NGHTTP2_OPT_NO_AUTO_WINDOW_UPDATE
.. macro:: NGHTTP2_OPT_NO_AUTO_
STREAM_
WINDOW_UPDATE
(``1``)
This option prevents the library from sending WINDOW_UPDATE
automatically. If this option is set, the application is
This option prevents the library from sending WINDOW_UPDATE
for a
stream
automatically. If this option is set, the application is
responsible for sending WINDOW_UPDATE using
`nghttp2_submit_window_update`.
.. macro:: NGHTTP2_OPT_NO_AUTO_CONNECTION_WINDOW_UPDATE
(``2``)
This option prevents the library from sending WINDOW_UPDATE for a
connection automatically. If this option is set, the application
is responsible for sending WINDOW_UPDATE with stream ID 0 using
`nghttp2_submit_window_update`.
...
...
@@ -901,12 +917,19 @@ Functions
The following *optname* are supported:
:macro:`NGHTTP2_OPT_NO_AUTO_WINDOW_UPDATE`
:macro:`NGHTTP2_OPT_NO_AUTO_STREAM_WINDOW_UPDATE`
The *optval* must be a pointer to ``int``. If the *\*optval* is
nonzero, the library will not send WINDOW_UPDATE for a stream
automatically. Therefore, the application is responsible for
sending WINDOW_UPDATE using
`nghttp2_submit_window_update`. This option defaults to 0.
:macro:`NGHTTP2_OPT_NO_AUTO_CONNECTION_WINDOW_UPDATE`
The *optval* must be a pointer to ``int``. If the *\*optval* is
nonzero, the library will not send WINDOW_UPDATE
automatically.
Therefore, the application is responsible for sending
WINDOW_UPDATE using `nghttp2_submit_window_update`. This option
defaults to 0.
nonzero, the library will not send WINDOW_UPDATE
for connection
automatically. Therefore, the application is responsible for
sending WINDOW_UPDATE using
`nghttp2_submit_window_update`. This option
defaults to 0.
This function returns 0 if it succeeds, or one of the following
negative error codes:
...
...
@@ -1377,6 +1400,10 @@ Functions
This function does not take ownership of the *iv*. This function
copies all the elements in the *iv*.
While updating individual stream's local window size, if the window
size becomes strictly larger than NGHTTP2_MAX_WINDOW_SIZE,
RST_STREAM is issued against such a stream.
This function returns 0 if it succeeds, or one of the following
negative error codes:
...
...
@@ -1460,21 +1487,31 @@ Functions
.. function:: int nghttp2_submit_window_update(nghttp2_session *session, uint8_t flags, int32_t stream_id, int32_t window_size_increment)
Submits WINDOW_UPDATE frame. The effective range of the
*window_size_increment* is [1, (1 << 31)-1], inclusive. But the
application must be responsible to keep the resulting window size
<= (1 << 31)-1. If :macro:`NGHTTP2_FLAG_END_FLOW_CONTROL` bit set in
the *flags*, 0 can be specified in the *window_size_increment*. In
fact, if this flag is set, the value specified in the
*window_size_increment* is ignored.
Submits WINDOW_UPDATE frame.
If the *window_size_increment* is positive, the WINDOW_UPDATE with
that value as window_size_increment is queued. If the
*window_size_increment* is larger than the received bytes from the
remote endpoint, the local window size is increased by that
difference.
If the *window_size_increment* is negative, the local window size
is decreased by -*window_size_increment*. If
:macro:`NGHTTP2_OPT_NO_AUTO_STREAM_WINDOW_UPDATE` (or
:macro:`NGHTTP2_OPT_NO_AUTO_CONNECTION_WINDOW_UPDATE` if *stream_id*
is 0) is not set and the library decided that the WINDOW_UPDATE
should be submitted, then WINDOW_UPDATE is queued with the current
received bytes count.
This function returns 0 if it succeeds, or one of the following
negative error codes:
:macro:`NGHTTP2_ERR_INVALID_ARGUMENT`
The *delta_window_size* is 0
or negative
and
The *delta_window_size* is 0 and
:macro:`NGHTTP2_FLAG_END_FLOW_CONTROL` bit is not set in
*flags*.
:macro:`NGHTTP2_ERR_FLOW_CONTROL`
The local window size overflow or gets negative.
:macro:`NGHTTP2_ERR_STREAM_CLOSED`
The stream is already closed or does not exist.
:macro:`NGHTTP2_ERR_NOMEM`
...
...
apiref.html
View file @
3c400bc6
This diff is collapsed.
Click to expand it.
genindex.html
View file @
3c400bc6
...
...
@@ -129,6 +129,10 @@
</dt>
<dt><a
href=
"apiref.html#NGHTTP2_ERR_FLOW_CONTROL"
>
NGHTTP2_ERR_FLOW_CONTROL (C macro)
</a>
</dt>
<dt><a
href=
"apiref.html#NGHTTP2_ERR_FRAME_TOO_LARGE"
>
NGHTTP2_ERR_FRAME_TOO_LARGE (C macro)
</a>
</dt>
...
...
@@ -425,6 +429,10 @@
</dt>
<dt><a
href=
"apiref.html#NGHTTP2_MAX_WINDOW_SIZE"
>
NGHTTP2_MAX_WINDOW_SIZE (C macro)
</a>
</dt>
<dt><a
href=
"apiref.html#NGHTTP2_NO_ERROR"
>
NGHTTP2_NO_ERROR (C macro)
</a>
</dt>
...
...
@@ -452,12 +460,12 @@
<dt><a
href=
"apiref.html#nghttp2_on_data_chunk_recv_callback"
>
nghttp2_on_data_chunk_recv_callback (C type)
</a>
</dt>
</dl></td>
<td
style=
"width: 33%"
valign=
"top"
><dl>
<dt><a
href=
"apiref.html#nghttp2_on_data_recv_callback"
>
nghttp2_on_data_recv_callback (C type)
</a>
</dt>
</dl></td>
<td
style=
"width: 33%"
valign=
"top"
><dl>
<dt><a
href=
"apiref.html#nghttp2_on_data_send_callback"
>
nghttp2_on_data_send_callback (C type)
</a>
</dt>
...
...
@@ -499,7 +507,11 @@
</dt>
<dt><a
href=
"apiref.html#NGHTTP2_OPT_NO_AUTO_WINDOW_UPDATE"
>
NGHTTP2_OPT_NO_AUTO_WINDOW_UPDATE (C macro)
</a>
<dt><a
href=
"apiref.html#NGHTTP2_OPT_NO_AUTO_CONNECTION_WINDOW_UPDATE"
>
NGHTTP2_OPT_NO_AUTO_CONNECTION_WINDOW_UPDATE (C macro)
</a>
</dt>
<dt><a
href=
"apiref.html#NGHTTP2_OPT_NO_AUTO_STREAM_WINDOW_UPDATE"
>
NGHTTP2_OPT_NO_AUTO_STREAM_WINDOW_UPDATE (C macro)
</a>
</dt>
...
...
objects.inv
View file @
3c400bc6
No preview for this file type
searchindex.js
View file @
3c400bc6
This diff is collapsed.
Click to expand it.
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