summaryrefslogtreecommitdiff
path: root/src/reqpool.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-03-24 04:21:11 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2022-03-25 08:43:42 -0400
commit5d1aa5d06f1dcae64481c142f7daaa0b08aee8d3 (patch)
tree3db59449f9dc69847f3cf29506d31e0135d00055 /src/reqpool.c
parent8fe9f1c053d828f666c0498d8b4281efabe6d3a6 (diff)
downloadlighttpd-git-5d1aa5d06f1dcae64481c142f7daaa0b08aee8d3.tar.gz
[multiple] WebSockets over HTTP/2 (fixes #3151)
Add support for WebSockets over HTTP/2 to lighttpd core and to mod_cgi w/ config: cgi.upgrade = "enable" mod_proxy w/ config: proxy.header += ("upgrade" => "enable") mod_wstunnel HTTP/2 CONNECT extension defined in RFC8441 is translated to HTTP/1.1 'Upgrade: websocket' requests to mod_cgi or mod_proxy, and is handled directly in mod_wstunnel. x-ref: WebSockets over HTTP/2 https://redmine.lighttpd.net/issues/3151 Bootstrapping WebSockets with HTTP/2 https://datatracker.ietf.org/doc/html/rfc8441
Diffstat (limited to 'src/reqpool.c')
-rw-r--r--src/reqpool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/reqpool.c b/src/reqpool.c
index 87cc0edf..98864249 100644
--- a/src/reqpool.c
+++ b/src/reqpool.c
@@ -107,6 +107,7 @@ request_reset (request_st * const r)
/*r->error_handler_saved_method = HTTP_METHOD_UNSET;*/
/*(error_handler_saved_method value is not valid
* unless error_handler_saved_status is set)*/
+ r->h2_connect_ext = 0;
buffer_clear(&r->uri.scheme);