Chat freely about anything...

User avatar
By pvvx
#5994 All SDK have a bug with espconn.

external side connection closed -> Lwip free PCB (struct pcb) -> timer espconn_close_cb() use old pcb pointer = eternal cycle timer espconn_close_cb() -> random memory or Lwip new PCB of old addres -> espconn_close_cb() close :D

This error occurs in all applications using espconn.
Do not use espconn!!
User avatar
By pvvx
#6016
Athena wrote::o @pvvx , How many clients are connected in your case ?

The error affects a single client.
My web server on ESP8266 (lwip only) - 10..15 clients for one time...
Code: Select allSDK version:0.9.4
Check Settings...Ok.
WiFi mode:3 chl:7 phy:3 dhcp:1/1
AP:ESP8266W[8] hiden(0) psw:0123456789 au:0 chl:7 maxcon:4
ip:0.0.0.0 gw:0.0.0.0 msk:0.0.0.0 mac:1a:fe:34:99:ac:f1
ST:HOMEAP psw:0123456789 b:0 ff:ff:ff:ff:ff:ff ac:1
ip:0.0.0.0 gw:0.0.0.0 msk:0.0.0.0 mac:18:fe:34:99:ac:f1
UDP Test port 1025 init
TCP Server init on port 80 - Ok
Max connection 99, time waits 5 & 5, min heap size 14528
TCP Server start - Ok
TCP Server init on port 9999 - Ok
Max connection 1, time waits 0 & 0, min heap size 14528
TCP Server start - Ok


espson error leads to eternal closing the connection or closes another connection :) espconn uses up to 5 connections. error leads to impossible to open a new connect + overload CPU + lack of disconnect = user memory loss, open connect != close connect :D .
Attachments
test.gif