Automaton-Esp8266 icon indicating copy to clipboard operation
Automaton-Esp8266 copied to clipboard

Atm_esp8266_httpc_simple gets stuck if server keep-alives connection

Open euphi opened this issue 7 years ago • 0 comments

The http client gets stuck till timeout if the server does not close the connection when the request has finished. Most (?) server (at least my default nginx) keep-alive the connection to wait for other http requests.

I have no real experience with http, so I don't know if there is a easy way to disable keep-alive from clientside. My solution/workaround: Close the connection, if the answer from server looks "finished", e.g. it ends with "

euphi avatar Dec 09 '17 07:12 euphi