Yang Song
5bf12b24f9
Move the parse of session->ob_reg after session->ob_syn.
2019-02-21 15:12:46 -05:00
Don
2591960e2f
Explicitly set install location when building shared libs
2019-02-06 10:26:30 -08:00
Brendan Heinonen
7e4c48a461
Disable shared library if ENABLE_SHARED_LIB is OFF
...
Signed-off-by: Brendan Heinonen <brendan@heinonen.co>
2018-12-27 13:06:02 -05:00
Tatsuhiro Tsujikawa
f6644a92af
make clang-format
2018-11-09 22:29:18 +09:00
Tatsuhiro Tsujikawa
48998f7239
Merge pull request #1222 from donny-dont/fix/declspec
...
Use __has_declspec_attribute for shared builds
2018-11-09 22:18:06 +09:00
Tatsuhiro Tsujikawa
334c439ce0
Fix bug that regular CONNECT does not work
2018-10-04 12:02:46 +09:00
Tatsuhiro Tsujikawa
6700626c30
Rule out content-length in the successful response to CONNECT
2018-10-03 23:24:32 +09:00
Tatsuhiro Tsujikawa
651e147711
Allow client sending :protocol optimistically
2018-09-28 00:12:02 +09:00
Tatsuhiro Tsujikawa
b80dfaa8a0
Adjustment for RFC 8441
2018-09-23 11:22:30 +09:00
Tatsuhiro Tsujikawa
a19d8f5d31
Deal with :protocol pseudo header
2018-09-23 10:36:30 +09:00
Tatsuhiro Tsujikawa
33f6e90a56
Add NGHTTP2_TOKEN__PROTOCOL
2018-09-23 10:36:30 +09:00
Tatsuhiro Tsujikawa
ed7fabcbc2
Add SETTINGS_ENABLE_CONNECT_PROTOCOL
2018-09-23 10:36:30 +09:00
Tatsuhiro Tsujikawa
a1ea1696be
Make VALID_HD_NAME_CHARS and VALID_HD_VALUE_CHARS const qualified
2018-09-13 23:50:31 +09:00
Tatsuhiro Tsujikawa
dfc0f248c6
Make static_table const qualified
2018-09-13 23:48:53 +09:00
Don
d82811303b
Use __has_declspec_attribute for shared builds
2018-09-05 10:01:50 -07:00
Tatsuhiro Tsujikawa
601fbbb4ae
Update doc
2018-09-02 15:24:12 +09:00
Tatsuhiro Tsujikawa
4098512b5d
Tweak nghttp2_session_set_stream_user_data
...
nghttp2_session_set_stream_user_data now works for a stream which is
not created yet, but the request which creates the stream is queued.
2018-08-18 17:38:58 +09:00
Tatsuhiro Tsujikawa
880f948684
Enable IndentPPDirectives
2018-06-09 16:21:30 +09:00
Piotr Sikora
2ba1389993
Fix handling of SETTINGS_MAX_CONCURRENT_STREAMS.
...
The maximum number of outgoing concurrent streams is initially
limited to 100 to avoid issues when the local endpoint submits
lots of requests before receiving initial SETTINGS frame from
the remote endpoint, since sending them at once to the remote
endpoint could lead to rejection of some of the requests.
This initial limit is overwritten with the value advertised in
SETTINGS_MAX_CONCURRENT_STREAMS setting by the remote endpoint,
but previously, it wasn't lifted if the remote endpoint didn't
advertise that setting (implying no limits), in which case the
limit of 100 was retained, even though it was never advertised
by the remote endpoint.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2018-05-30 20:24:00 -07:00
Tatsuhiro Tsujikawa
575bc309b9
Fix typo
2018-05-12 13:07:52 +09:00
Tatsuhiro Tsujikawa
00909d0742
Update doc
2018-05-12 13:07:04 +09:00
Tatsuhiro Tsujikawa
8034221525
Implement ORIGIN frame
2018-05-12 12:35:08 +09:00
Tatsuhiro Tsujikawa
a5c408c5e3
Ignore all input after calling session_terminate_session
2018-04-22 14:42:28 +09:00
Tatsuhiro Tsujikawa
06379b2861
Fix treatment of padding
2018-04-22 14:42:28 +09:00
Tatsuhiro Tsujikawa
b1bd6035e8
Fix frame handling
2018-04-07 00:27:55 +09:00
Viktor Szakats
f342260bfe
cmake: add ENABLE_STATIC_LIB option to build static lib
...
When using the ENABLE_LIB_ONLY option, only the shared
library was built. This new option allows to build the
static library as well.
2018-03-12 22:41:37 +00:00
Tatsuhiro Tsujikawa
842509dab6
Don't allow 101 HTTP status code because HTTP/2 removes HTTP Upgrade
2018-03-11 15:37:30 +09:00
Tatsuhiro Tsujikawa
17793e99dc
Add nghttp2_session_set_user_data() public API function
2018-02-22 21:02:16 +09:00
Tatsuhiro Tsujikawa
acd6b40e4c
Allow PING frame to be sent after GOAWAY
2018-01-08 17:03:48 +09:00
Tatsuhiro Tsujikawa
422ad1be32
Use NGHTTP2_REFUSED_STREAM for streams which are closed by GOAWAY
...
The error code NGHTTP2_REFUSED_STREAM is passed to
nghttp2_on_stream_close callback when a stream is closed because its
stream ID is strictly larger than incoming or outgoing GOAWAY.
2017-11-30 23:10:57 +09:00
Tatsuhiro Tsujikawa
53aeb2c3d7
Fix doc
2017-11-24 22:26:29 +09:00
Tatsuhiro Tsujikawa
ff200bfcf3
clang-format-5.0
2017-11-23 14:19:12 +09:00
Tatsuhiro Tsujikawa
43a2a70ae7
Add nghttp2_error_callback2
...
nghttp2_error_callback2 is an extended version of the existing
nghttp2_error_callback by adding error code parameter. This
deprecates nghttp2_error_callback.
2017-11-19 16:51:52 +09:00
Tatsuhiro Tsujikawa
aaeeec8f1c
Fix typos
2017-10-28 22:25:42 +09:00
Tatsuhiro Tsujikawa
6635ca5e26
Merge pull request #988 from dvetutnev/refactoring_include_directories
...
Refactoring include directories
2017-08-23 18:59:28 +09:00
Tatsuhiro Tsujikawa
0d91e9c255
Update doc
2017-08-18 22:06:43 +09:00
Dmitriy Vetutnev
af926fbe1f
Refactoring include directories for build as CMake subdirectory (add_subdirectory(nghttp2))
2017-08-16 21:28:12 +03:00
Anna Henningsen
eb306f463e
lib: add nghttp2_rcbuf_is_static()
...
Add a `nghttp2_rcbuf_is_static()` method to tell whether a rcbuf
is statically allocated.
This can be useful for language bindings that wish to avoid
creating duplicate strings for these buffers; concretely, I am
planning to use this in the Node HTTP/2 module that is being
introduced.
2017-08-12 17:48:14 +02:00
Tatsuhiro Tsujikawa
0f69e9c825
Fix typo
2017-07-28 00:51:34 +09:00
Sebastiaan Deckers
c601e603c2
fix: typo
...
Came up in downstream code review by @lucaslago https://github.com/nodejs/node/pull/14239#discussion_r127539852
2017-07-15 07:46:26 +08:00
Benjamin Peterson
b7c95be47c
fix up grammar in submit_trailer docs
2017-06-18 23:55:53 -07:00
Tatsuhiro Tsujikawa
1b442cb16f
Compile with --disable-assert
2017-05-18 23:10:44 +09:00
Angus Gratton
e17ff8fd32
nghttp2_session: Allow for compiling library with -DNDEBUG set
2017-05-17 14:43:06 +10:00
Tatsuhiro Tsujikawa
d3fcbe9a02
Merge branch 'invalid-header-field-error'
2017-05-12 21:37:20 +09:00
Tatsuhiro Tsujikawa
a584cf5a4f
Use clang-format-4.0
2017-04-30 15:45:53 +09:00
Tatsuhiro Tsujikawa
f2c539dc70
Clarify the effect of nghttp2_option_set_no_http_messaging
2017-04-29 21:00:20 +09:00
Tatsuhiro Tsujikawa
78d7160a99
Treat incoming invalid regular header field as stream error
...
Previously, the incoming invalid regular header field was ignored by
default. With this commit, they are now treated as stream error, and
the stream is reset by default. The error code used is now
PROTOCOL_ERROR, instead of INTERNAL_ERROR.
2017-04-28 23:46:06 +09:00
Tatsuhiro Tsujikawa
21af775ce0
Call nghttp2_on_invalid_frame_callback if altsvc validation fails
2017-04-27 18:53:43 +09:00
Tatsuhiro Tsujikawa
2358a2137a
Refactor predicate functions
2017-04-26 22:31:43 +09:00
Tatsuhiro Tsujikawa
66baa7dc25
Estimate header block size after predicate function succeeds
2017-04-26 22:15:53 +09:00