Skip to content

Commit 531811f

Browse files
committed
Merge branch 'master' of https://github.com/valkuc/libesphttpd into valkuc-master
2 parents 8d2ff79 + eec1e8a commit 531811f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/httpd-nonos.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ void ICACHE_FLASH_ATTR httpdPlatUnlock() {
2222

2323

2424
static void ICACHE_FLASH_ATTR platReconCb(void *arg, sint8 err) {
25-
//Yeah, this is pretty useless...
25+
//From ESP8266 SDK
26+
//If still no response, considers it as TCP connection broke, goes into espconn_reconnect_callback.
27+
28+
ConnTypePtr conn=arg;
29+
//Just call disconnect to clean up pool and close connection.
30+
httpdDisconCb(conn, (char*)conn->proto.tcp->remote_ip, conn->proto.tcp->remote_port);
2631
}
2732

2833
static void ICACHE_FLASH_ATTR platDisconCb(void *arg) {

0 commit comments

Comments
 (0)