Automaton-Esp8266
Automaton-Esp8266 copied to clipboard
Atm_esp8266_httpc_simple gets stuck if server keep-alives connection
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 "