ESP8266WebServer - Drop inactive connection when another is waiting to improve page load time by aWZHY0yQH81uOYvH · Pull Request #8216 · esp8266/Arduino

@d-a-v d-a-v added this to the 3.1 milestone

Jul 19, 2021

@aWZHY0yQH81uOYvH

…nother has data

Safari sometimes opens two connections when loading a page and only
sends a request over the second one, resulting in a 5 second wait
(HTTP_MAX_DATA_WAIT) before the request is processed. This commit
drops the current connection after 30ms (HTTP_MAX_DATA_AVAILABLE_WAIT)
when there is a new connection with data available or the buffer of
pending TCP clients is full (currently 5).

@mcspr

d-a-v added a commit to d-a-v/Arduino that referenced this pull request

Oct 27, 2021

@d-a-v d-a-v mentioned this pull request

Oct 27, 2021

@d-a-v @aWZHY0yQH81uOYvH

@d-a-v d-a-v mentioned this pull request

Oct 27, 2021

@d-a-v d-a-v mentioned this pull request

Dec 4, 2021

hasenradball pushed a commit to hasenradball/Arduino that referenced this pull request

Nov 18, 2024
…o improve page load time (esp8266#8216)

* ESP8266WebServer - drop current HC_WAIT_READ connection sooner when another has data

Safari sometimes opens two connections when loading a page and only
sends a request over the second one, resulting in a 5 second wait
(HTTP_MAX_DATA_WAIT) before the request is processed. This commit
drops the current connection after 30ms (HTTP_MAX_DATA_AVAILABLE_WAIT)
when there is a new connection with data available or the buffer of
pending TCP clients is full (currently 5).