diff options
author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-02-01 00:51:24 +0900 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-02-04 14:49:49 +0100 |
commit | 63b26d889f58ba25fc45a2ff02ed41ea08c63dbd (patch) | |
tree | fe3b19104f012a492eefd7c35f114de86b6b9af5 /lib/Makefile.inc | |
parent | 4d8db595cab1222927a251a9b836ac4947b7d73d (diff) |
HTTP2: add layer between existing http and socket(TLS) layer
This patch chooses different approach to integrate HTTP2 into HTTP curl
stack. The idea is that we insert HTTP2 layer between HTTP code and
socket(TLS) layer. When HTTP2 is initialized (either in NPN or Upgrade),
we replace the Curl_recv/Curl_send callbacks with HTTP2's, but keep the
original callbacks in http_conn struct. When sending serialized data by
nghttp2, we use original Curl_send callback. Likewise, when reading data
from network, we use original Curl_recv callback. In this way we can
treat both TLS and non-TLS connections.
With this patch, one can transfer contents from https://twitter.com and
from nghttp2 test server in plain HTTP as well.
The code still has rough edges. The notable one is I could not figure
out how to call nghttp2_session_send() when underlying socket is
writable.
Diffstat (limited to 'lib/Makefile.inc')
0 files changed, 0 insertions, 0 deletions