1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib/roles/http
Andy Green 272dba8307 http: redo redirects to follow close flow
Until now although we can follow redirects, and they can promote the
protocol from h1->h2, we couldn't handle h2 wsi reuse since there are many
states in the wsi affected by being h2.

This wipes the related states in lws_wsi_reset() and follows the generic
wsi close flow before deviating into the redirect really close to the end,
ensuring we cleaned out evidence of our previous life properly.

h2->h2 redirects work properly after this.

The max number of redirects is increased from 3 -> 4 since this was seen in
the wild with www and then geographic-based redirects.
2021-06-22 15:55:29 +01:00
..
client http: redo redirects to follow close flow 2021-06-22 15:55:29 +01:00
compression sai: xenial 2021-02-28 19:05:25 +00:00
server TCP_FASTOPEN 2021-05-25 08:13:13 +01:00
CMakeLists.txt http: add RFC7231 date and time helpers and retry-after handling 2020-09-19 14:11:56 +01:00
date.c use gmtime_r instead of gmtime if possible 2021-03-25 10:08:40 +00:00
header.c lws_metrics 2021-03-08 21:47:28 +00:00
lextable-strings.h http: x-amn-dss-signature header 2021-02-17 11:39:15 +00:00
lextable.h http: x-amn-dss-signature header 2021-02-17 11:39:15 +00:00
minilex.c h2: mark :protocol as an h2 psuedoheader 2020-09-20 09:17:09 +01:00
parsers.c http: parser: straighten out %00 legality 2021-04-10 09:21:33 +01:00
private-lib-roles-http.h lws_metrics 2021-03-08 21:47:28 +00:00