diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-12-17 07:13:11 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-12-17 07:13:11 -0500 |
commit | f98df3c62be304262e7f78257d58f5e5b424fd6a (patch) | |
tree | d5d510a9cc13c57386f5c9915208a04cb04ce24e /src/h2.c | |
parent | 2335073cf657b50e1dcca3f3451e48d2b4a86b4e (diff) | |
download | lighttpd-git-f98df3c62be304262e7f78257d58f5e5b424fd6a.tar.gz |
[core] connection_handle_read_state() tweak
no need to set transient state CON_STATE_REQUEST_END
Diffstat (limited to 'src/h2.c')
-rw-r--r-- | src/h2.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -2682,8 +2682,6 @@ h2_retire_con (request_st * const h2r, connection * const con) static void h2_con_upgrade_h2c (request_st * const h2r, const buffer * const http2_settings) { - /* status: (h2r->state == CON_STATE_REQUEST_END) for Upgrade: h2c */ - /* HTTP/1.1 101 Switching Protocols * Connection: Upgrade * Upgrade: h2c @@ -2717,7 +2715,7 @@ h2_con_upgrade_h2c (request_st * const h2r, const buffer * const http2_settings) request_st * const r = h2_init_stream(h2r, con); /*(undo double-count; already incremented in CON_STATE_REQUEST_START)*/ --con->request_count; - r->state = h2r->state; /* CON_STATE_REQUEST_END */ + r->state = CON_STATE_REQUEST_END; r->http_status = 0; r->http_method = h2r->http_method; r->h2state = H2_STATE_HALF_CLOSED_REMOTE; |