Update doc

This commit is contained in:
Tatsuhiro Tsujikawa 2013-08-09 01:51:45 +09:00
parent 5dd6d86d66
commit 6d8ab6ed0a
1 changed files with 17 additions and 8 deletions

View File

@ -1089,12 +1089,19 @@ typedef enum {
* *
* The following |optname| are supported: * The following |optname| are supported:
* *
* :enum:`NGHTTP2_OPT_NO_AUTO_WINDOW_UPDATE` * :enum:`NGHTTP2_OPT_NO_AUTO_STREAM_WINDOW_UPDATE`
* The |optval| must be a pointer to ``int``. If the |*optval| is * The |optval| must be a pointer to ``int``. If the |*optval| is
* nonzero, the library will not send WINDOW_UPDATE automatically. * nonzero, the library will not send WINDOW_UPDATE for a stream
* Therefore, the application is responsible for sending * automatically. Therefore, the application is responsible for
* WINDOW_UPDATE using `nghttp2_submit_window_update`. This option * sending WINDOW_UPDATE using
* defaults to 0. * `nghttp2_submit_window_update`. This option defaults to 0.
*
* :enum:`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 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 * This function returns 0 if it succeeds, or one of the following
* negative error codes: * negative error codes:
@ -1732,9 +1739,11 @@ int nghttp2_submit_goaway(nghttp2_session *session,
* *
* If the |window_size_increment| is negative, the local window size * If the |window_size_increment| is negative, the local window size
* is decreased by -|window_size_increment|. If * is decreased by -|window_size_increment|. If
* :enum:`NGHTTP2_OPT_NO_AUTO_WINDOW_UPDATE` is not set and the * :enum:`NGHTTP2_OPT_NO_AUTO_STREAM_WINDOW_UPDATE` (or
* library decided that the WINDOW_UPDATE should be submitted, then * :enum:`NGHTTP2_OPT_NO_AUTO_CONNECTION_WINDOW_UPDATE` if |stream_id|
* WINDOW_UPDATE is queued with the current received bytes count. * 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 * This function returns 0 if it succeeds, or one of the following
* negative error codes: * negative error codes: