From 3aba7fdd8364eac936e77490cba6afe0e119e8c0 Mon Sep 17 00:00:00 2001
From: Tatsuhiro Tsujikawa
Date: Sat, 14 Sep 2013 19:44:21 +0900
Subject: [PATCH] Update doc
---
_sources/apiref.txt | 18 ++++++++++++++++++
apiref.html | 20 ++++++++++++++++++++
genindex.html | 8 ++++++--
nghttp2.h.html | 20 +++++++++++++++++++-
objects.inv | Bin 1917 -> 1926 bytes
searchindex.js | 2 +-
6 files changed, 64 insertions(+), 4 deletions(-)
diff --git a/_sources/apiref.txt b/_sources/apiref.txt
index 64bd5700..b3c52b4a 100644
--- a/_sources/apiref.txt
+++ b/_sources/apiref.txt
@@ -411,6 +411,20 @@ Enums
connection automatically. If this option is set, the application
is responsible for sending WINDOW_UPDATE with stream ID 0 using
`nghttp2_submit_window_update`.
+ .. macro:: NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS
+
+ (``3``)
+ This option sets the SETTINGS_MAX_CONCURRENT_STREAMS value of
+ remote endpoint as if it is received in SETTINGS frame. Without
+ specifying this option, before the local endpoint receives
+ SETTINGS_MAX_CONCURRENT_STREAMS in SETTINGS frame from remote
+ endpoint, SETTINGS_MAX_CONCURRENT_STREAMS is unlimited. This may
+ cause problem if local endpoint submits lots of requests
+ initially and sending them at once to the remote peer may lead to
+ the rejection of some requests. Specifying this option to the
+ sensible value, say 100, may avoid this kind of issue. This value
+ will be overwritten if the local endpoint receives
+ SETTINGS_MAX_CONCURRENT_STREAMS from the remote endpoint.
@@ -1059,6 +1073,10 @@ Functions
sending WINDOW_UPDATE using
`nghttp2_submit_window_update`. This option defaults to 0.
+ :macro:`NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS`
+ The *optval* must be a pointer to ``ssize_t``. It is an error
+ if *\*optval* is 0 or negative.
+
This function returns 0 if it succeeds, or one of the following
negative error codes:
diff --git a/apiref.html b/apiref.html
index 8ef29c4f..59d14269 100644
--- a/apiref.html
+++ b/apiref.html
@@ -657,6 +657,23 @@ is responsible for sending WINDOW_UPDATE with stream ID 0 using
nghttp2_submit_window_update().
+
+-
+NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS
+(3)
+This option sets the SETTINGS_MAX_CONCURRENT_STREAMS value of
+remote endpoint as if it is received in SETTINGS frame. Without
+specifying this option, before the local endpoint receives
+SETTINGS_MAX_CONCURRENT_STREAMS in SETTINGS frame from remote
+endpoint, SETTINGS_MAX_CONCURRENT_STREAMS is unlimited. This may
+cause problem if local endpoint submits lots of requests
+initially and sending them at once to the remote peer may lead to
+the rejection of some requests. Specifying this option to the
+sensible value, say 100, may avoid this kind of issue. This value
+will be overwritten if the local endpoint receives
+SETTINGS_MAX_CONCURRENT_STREAMS from the remote endpoint.
+
+
@@ -1492,6 +1509,9 @@ 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.
+NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS
+The optval must be a pointer to ssize_t. It is an error
+if *optval is 0 or negative.
This function returns 0 if it succeeds, or one of the following
negative error codes:
diff --git a/genindex.html b/genindex.html
index b22b6394..7c733e00 100644
--- a/genindex.html
+++ b/genindex.html
@@ -480,12 +480,12 @@
nghttp2_nv_compare_name (C function)
-
-
- nghttp2_on_data_chunk_recv_callback (C type)
+ |
+
- nghttp2_on_data_recv_callback (C type)
@@ -539,6 +539,10 @@
+ - NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS (C macro)
+
+
+
- nghttp2_pack_settings_payload (C function)
diff --git a/nghttp2.h.html b/nghttp2.h.html
index a1482c1b..db014279 100644
--- a/nghttp2.h.html
+++ b/nghttp2.h.html
@@ -1258,7 +1258,21 @@
* is responsible for sending WINDOW_UPDATE with stream ID 0 using
* `nghttp2_submit_window_update`.
*/
- NGHTTP2_OPT_NO_AUTO_CONNECTION_WINDOW_UPDATE = 2
+ NGHTTP2_OPT_NO_AUTO_CONNECTION_WINDOW_UPDATE = 2,
+ /**
+ * This option sets the SETTINGS_MAX_CONCURRENT_STREAMS value of
+ * remote endpoint as if it is received in SETTINGS frame. Without
+ * specifying this option, before the local endpoint receives
+ * SETTINGS_MAX_CONCURRENT_STREAMS in SETTINGS frame from remote
+ * endpoint, SETTINGS_MAX_CONCURRENT_STREAMS is unlimited. This may
+ * cause problem if local endpoint submits lots of requests
+ * initially and sending them at once to the remote peer may lead to
+ * the rejection of some requests. Specifying this option to the
+ * sensible value, say 100, may avoid this kind of issue. This value
+ * will be overwritten if the local endpoint receives
+ * SETTINGS_MAX_CONCURRENT_STREAMS from the remote endpoint.
+ */
+ NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS = 3
} nghttp2_opt;
/**
@@ -1286,6 +1300,10 @@
* sending WINDOW_UPDATE using
* `nghttp2_submit_window_update`. This option defaults to 0.
*
+ * :enum:`NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS`
+ * The |optval| must be a pointer to ``ssize_t``. It is an error
+ * if |*optval| is 0 or negative.
+ *
* This function returns 0 if it succeeds, or one of the following
* negative error codes:
*
diff --git a/objects.inv b/objects.inv
index f6fdbf3b8a7a7fbd5325c891c359487bc0281ee4..d85a4718a0d01fd04d042d0098be3dc473f98b70 100644
GIT binary patch
delta 1818
zcmV+#2j%$v4u%hqfq#>mI1s+)SGa2T8mcnK+!!N!s9<1uWHPy^FvvC)41|ZB$*i^sAXqT2OD8j>ZVf(*sncFU~gFX9Tu3tRQet)9Gaj0&7RSjLEuBUor
z5q>@fVUaC9ErL8Q*sk6D_u}JZ&&p9ZgnE`m4b@rC?MnBDs>+{edQwh7QZv4k9k;BQ
zSzEHQjI)%6L6U5P@JFe@hg}gI8BMbazD}dzySd*R-}r^78gb~-+SrKOmaMAcbYD`I
zR>eDPsNQonbAN(vdc-kRgCAu%2qoH%P7UjoxE|s*gY*RpPh-jdaI1b_UY7@&7uhi`
znUbComOiZgD5wG&9_sYR%_W5DUm5C}+LpOSh}y`h93sr`E)AWS9+=cL$o$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