- 26 Nov, 2015 6 commits
-
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
- 25 Nov, 2015 2 commits
-
-
Tatsuhiro Tsujikawa authored
Because of the nature of heap based priority queue, and our compare function, streams with the same weight and same parent are handled in the reverse order they pushed to the queue. To allow stream pushed earlier to be served first, secondary key "seq" is introduced to break a tie. "seq" is monotonically increased integer per parent stream, and it is assigned to stream when it is pused to the queue, and gets incremented.
-
Tatsuhiro Tsujikawa authored
-
- 24 Nov, 2015 3 commits
-
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
Previously, nghttp2_session_find_stream(session, 0) returned NULL despite the fact that documentation said that it should return root stream. Now it is corrected, and it returns root stream as documented.
-
- 23 Nov, 2015 9 commits
-
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Kit Chan authored
-
Tatsuhiro Tsujikawa authored
We added spdylay build since integration tests require it.
-
- 22 Nov, 2015 1 commit
-
-
Tatsuhiro Tsujikawa authored
This avoid establishing HTTP/2 backend connection again w/o pending request. See GH-431
-
- 21 Nov, 2015 8 commits
-
-
Tatsuhiro Tsujikawa authored
The added API is nghttp2_session_change_stream_priority(). This provides the same functionality to re-prioritize stream when PRIORITY frame. is received, but we do it without PRIORITY frame. This could be useful for server to change pushed stream's priority silently.
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
This commit adds ability to check status of cached file descriptor to make sure that it can be reused. We inspect last modification time and number of hard links. If last modification is changed from the last validation time, or number of hard links gets 0, we don't reuse file descriptor. We also capped upper limit of the cached file descriptors. If the limit is reached, we will close file descriptor which is least recently used, and its usecount is 0.
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
This is very simple API, and it returns nonzero if session is initialized as server.
-
Tatsuhiro Tsujikawa authored
-
- 20 Nov, 2015 1 commit
-
-
Tatsuhiro Tsujikawa authored
-
- 19 Nov, 2015 2 commits
-
-
Tatsuhiro Tsujikawa authored
When stream is removed from tree, stream is either closed, or its remote flow control window is depleted. In the latter case, we schedule this stream as fast as possible if its remote window gets positive, since it did not sent anything in its turn. To achieve this, reset last_writelen to 0 when stream is removed from tree.
-
Tatsuhiro Tsujikawa authored
-
- 18 Nov, 2015 3 commits
-
-
Tatsuhiro Tsujikawa authored
When connection is dropped, we get "nonzero" error code ec in read_socket callback. We can just call on_error callback if ec is nonzero. But there is a problem when we did ordered shutdown. In this case, we also get EOF in ec, but we don't want to call on_error because it is not an error. To workaround this, we check return value of should_stop(). If it is true, then we assume that HTTP/2 session cleanly ended, and we don't call on_error.
-
Tatsuhiro Tsujikawa authored
To make use cache fd more robust manner (e.g. among several connections), eviction of cached file descriptor now takes place using timer. The timer is started when there is no handler (no connections). The timeout value is hard-coded and 2 seconds.
-
Tatsuhiro Tsujikawa authored
This commit allows user to override user-agent with -H option. We also enabled custom header support for http/1.1 requests. We also did minor optimizations (std::vector::reserve).
-
- 17 Nov, 2015 1 commit
-
-
Tatsuhiro Tsujikawa authored
-
- 16 Nov, 2015 4 commits
-
-
Tatsuhiro Tsujikawa authored
-
Tatsuhiro Tsujikawa authored
This commits enables HTTP/2 server push from HTTP/2 backend to be relayed to HTTP/2 frontend. To use this feature, --http2-bridge or --client is required. Server push via Link header field contiues to work.
-
Tatsuhiro Tsujikawa authored
For clients, CANCEL is more appropriate for both incoming/outgoing streams. For servers, CANCEL is appropriate for its pushed stream (outgoing), but REFUSED_STREAM is more appropriate for incoming stream.
-
Tatsuhiro Tsujikawa authored
-