You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 "".
Add in line 90 of Atm_esp8266_httpc_simple.cpp:
if (response_data.endsWith("</html>\r\n")) client.stop();
The text was updated successfully, but these errors were encountered:
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 "".
Add in line 90 of Atm_esp8266_httpc_simple.cpp:
The text was updated successfully, but these errors were encountered: