esp8266 / Arduino

ESP8266 core for Arduino
GNU Lesser General Public License v2.1
16.09k stars 13.33k forks source link

Meaning of "HTTPServer: error: short send after timeout" #9124

Open jmmprodukts opened 7 months ago

jmmprodukts commented 7 months ago

Basic Infos

Platform

Settings in IDE

Problem Description

After multiple requests from a browser to the EP8266 webserver I get the following on the serial port (with DEBUG LEVEL HTTP_CLIENT+HTTP_SERVER

MCVE Sketch

Debug Messages

2024-04-18 13:09:26 Zomertijd 12600 36>New client request: GET /FolderPage HTTP/1.1 method: GET url: /FolderPage search: keepAlive=: 1 headerName: Host headerValue: 192.168.2.238 headerName: Connection headerValue: keep-alive headerName: Cache-Control headerValue: max-age=0 headerName: DNT headerValue: 1 headerName: Upgrade-Insecure-Requests headerValue: 1 headerName: User-Agent headerValue: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 headerName: Accept headerValue: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.7 headerName: Referer headerValue: http://192.168.2.238/ headerName: Accept-Encoding headerValue: gzip, deflate headerName: Accept-Language headerValue: en-US,en;q=0.9,nl-NL;q=0.8,nl;q=0.7 headerName: sec-gpc headerValue: 1 args: args count: 0 args: args count: 0 Request: /FolderPage Arguments: final list of key/value pairs: HTTPServer: error: sent 0 on 103 bytes HTTPServer: error: short send after timeout (0 < 25) HTTPServer: error: short send after timeout (0 < 24) HTTPServer: error: short send after timeout (0 < 26) HTTPServer: error: short send after timeout (0 < 5) HTTPServer: error: short send after timeout (0 < 11) HTTPServer: error: short send after timeout (0 < 2) HTTPServer: error: short send after timeout (0 < 3) HTTPServer: error: short send after timeout (0 < 18) HTTPServer: error: short send after timeout (0 < 4) HTTPServer: error: short send after timeout (0 < 3) HTTPServer: error: short send after timeout (0 < 292) HTTPServer: error: short send after timeout (0 < 28) HTTPServer: error: short send after timeout (0 < 546) HTTPServer: error: short send after timeout (0 < 592) HTTPServer: error: short send after timeout (0 < 8) HTTPServer: error: short send after timeout (0 < 10) HTTPServer: error: short send after timeout (0 < 19) HTTPServer: error: short send after timeout (0 < 41) HTTPServer: error: short send after timeout (0 < 3) HTTPServer: error: short send after timeout (0 < 24) HTTPServer: error: short send after timeout (0 < 35) HTTPServer: error: short send after timeout (0 < 28) HTTPServer: error: short send after timeout (0 < 103) HTTPServer: error: short send after timeout (0 < 10) HTTPServer: error: short send after timeout (0 < 36) HTTPServer: error: short send after timeout (0 < 38) HTTPServer: error: short send after timeout (0 < 38) HTTPServer: error: short send after timeout (0 < 71) HTTPServer: error: short send after timeout (0 < 60) HTTPServer: error: short send after timeout (0 < 58) HTTPServer: error: short send after timeout (0 < 58) HTTPServer: error: short send after timeout (0 < 36) HTTPServer: error: short send after timeout (0 < 28) HTTPServer: error: short send after timeout (0 < 5) HTTPServer: error: short send after timeout (0 < 3) HTTPServer: error: short send after timeout (0 < 34) HTTPServer: error: short send after timeout (0 < 126) HTTPServer: error: short send after timeout (0 < 53) HTTPServer: error: short send after timeout (0 < 49) HTTPServer: error: short send after timeout (0 < 78) HTTPServer: error: short send after timeout (0 < 3) HTTPServer: error: short send after timeout (0 < 35) HTTPServer: error: short send after timeout (0 < 54) HTTPServer: error: short send after timeout (0 < 31) HTTPServer: error: short send after timeout (0 < 3) HTTPServer: error: short send after timeout (0 < 32) HTTPServer: error: short send after timeout (0 < 44) HTTPServer: error: short send after timeout (0 < 3) HTTPServer: error: short send after timeout (0 < 32) HTTPServer: error: short send after timeout (0 < 45) HTTPServer: error: short send after timeout (0 < 3) HTTPServer: error: short send after timeout (0 < 11) HTTPServer: error: short send after timeout (0 < 54) HTTPServer: error: short send after timeout (0 < 71) HTTPServer: error: short send after timeout (0 < 723) HTTPServer: error: short send after timeout (0 < 8) HTTPServer: error: short send after timeout (0 < 28) HTTPServer: error: short send after timeout (0 < 22) HTTPServer: error: short send after timeout (0 < 22) HTTPServer: error: short send after timeout (0 < 22) HTTPServer: error: short send after timeout (0 < 22) HTTPServer: error: short send after timeout (0 < 2) HTTPServer: error: short send after timeout (0 < 11) HTTPServer: error: short send after timeout (0 < 29) HTTPServer: error: short send after timeout (0 < 41) HTTPServer: error: short send after timeout (0 < 4) HTTPServer: error: short send after timeout (0 < 29) HTTPServer: error: short send after timeout (0 < 12) HTTPServer: error: short send after timeout (0 < 8) HTTPServer: error: short send after timeout (0 < 96) HTTPServer: error: short send after timeout (0 < 34) HTTPServer: error: short send after timeout (0 < 108) HTTPServer: error: short send after timeout (0 < 18) HTTPServer: error: short send after timeout (0 < 21) HTTPServer: error: short send after timeout (0 < 21) HTTPServer: error: short send after timeout (0 < 8) HTTPServer: error: short send after timeout (0 < 11) HTTPServer: error: short send after timeout (0 < 58) HTTPServer: error: short send after timeout (0 < 8) HTTPServer: error: short send after timeout (0 < 41) HTTPServer: error: short send after timeout (0 < 4) HTTPServer: error: short send after timeout (0 < 29) HTTPServer: error: short send after timeout (0 < 12) HTTPServer: error: short send after timeout (0 < 8) HTTPServer: error: short send after timeout (0 < 96) HTTPServer: error: short send after timeout (0 < 34) HTTPServer: error: short send after timeout (0 < 107) HTTPServer: error: short send after timeout (0 < 18) HTTPServer: error: short send after timeout (0 < 21) HTTPServer: error: short send after timeout (0 < 21) HTTPServer: error: short send after timeout (0 < 8) HTTPServer: error: short send after timeout (0 < 7) HTTPServer: error: short send after timeout (0 < 104) HTTPServer: error: short send after timeout (0 < 31) HTTPServer: error: short send after timeout (0 < 106) HTTPServer: error: short send after timeout (0 < 86) HTTPServer: error: short send after timeout (0 < 11)

mcspr commented 3 months ago

Probably means client is disconnected? https://github.com/esp8266/Arduino/blob/c2f136515a396be1101b261fe7b71e137aef0dce/libraries/ESP8266WebServer/src/ESP8266WebServer-impl.h#L612-L616