diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-08-04 12:18:38 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-10-11 11:43:06 -0400 |
commit | 8d7e9439b5217cdeb86b6cb71c4b60cd0c3ed930 (patch) | |
tree | 4f16e4b312fcf3575a2a4eee72af69f1027ea235 /src/reqpool.c | |
parent | 784f1ac1daa179e89a95d92e87481fcb2f772750 (diff) | |
download | lighttpd-git-8d7e9439b5217cdeb86b6cb71c4b60cd0c3ed930.tar.gz |
[core] connection transition to HTTP/2; incomplete
(experimental)
(basic framework with some stub functions; incomplete)
(subsequently incrementally updated using git rebase)
HTTP/2 via TLS ALPN extension (TLS)
HTTP/2 via Upgrade: h2c (cleartext)
HTTP/2 via Prior Knowledge (cleartext)
server.feature-flags += ("server.h2proto" => "enable")
to enable HTTP/2
server.feature-flags += ("server.h2c" => "enable")
to enable upgrade to HTTP/2 over cleartext http
Diffstat (limited to 'src/reqpool.c')
-rw-r--r-- | src/reqpool.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/reqpool.c b/src/reqpool.c index 88156fd8..3b71b815 100644 --- a/src/reqpool.c +++ b/src/reqpool.c @@ -25,6 +25,8 @@ request_init (request_st * const r, connection * const con, server * const srv) r->read_queue = chunkqueue_init(); r->reqbody_queue = chunkqueue_init(); + r->http_method = HTTP_METHOD_UNSET; + r->http_version = HTTP_VERSION_UNSET; r->resp_header_len = 0; r->loops_per_request = 0; r->con = con; @@ -57,6 +59,8 @@ request_reset (request_st * const r) r->resp_header_len = 0; r->loops_per_request = 0; + r->h2state = 0; /* H2_STATE_IDLE */ + r->h2id = 0; r->http_method = HTTP_METHOD_UNSET; r->http_version = HTTP_VERSION_UNSET; |