Open saper-2 opened 9 years ago
It seems that calling espconn_disconnect does not work for server (listening) sockets. Looking at the source of espconn_tcp_server function (lwip/app/espconn_tcp.c), they just create a pcb, set it up the server, and never store this pcb anywhere! So there's no way to "stop" the server because they have leaked the pointer to it. Other than do a reset, of course.
Ok, I don't need anyway to stop server, now I think there is problem with freeing connection-contexts. I posted on esp8266 forum about this.
As martinayotte (from ESP8266 Forum @ Post ) noticed, that after closing server by CIPCLOSE , and sending data to closed server causes watchdog to bite :wink: esp and reboot him. I do confirm this issue. I run a test, and sent data after
AT+CIPCLOSE=6
and there is log from terminal: