APSTA webserver - handler for SYSTEM_EVENT_AP_DISCONNECTED and SYSTEM_EVENT_STA_DISCONNECTED

jcsbanks
Posts: 305
Joined: Tue Mar 28, 2017 8:03 pm

APSTA webserver - handler for SYSTEM_EVENT_AP_DISCONNECTED and SYSTEM_EVENT_STA_DISCONNECTED

Postby jcsbanks » Tue Jun 18, 2019 9:22 pm

I am using a webserver based on the simple webserver example, and it works for either AP or STA by removing stop_webserver.

However, after a while torture testing it by connecting and disconnecting various devices I get some errors like below and the webserver becomes unresponsive. I wonder if they would go away if I managed to stop_webserver at appropriate times. However, I don't want to kill an active webserver on AP or STA when STA or AP has a disconnection. Any suggestions on how to handle it? I'm studying the persistent_socketes example, is this on the right lines?

Code: Select all

W (293336) httpd_txrx: httpd_sock_err: error in recv : 113
W (294559) httpd_txrx: httpd_sock_err: error in recv : 113
W (294563) httpd_txrx: httpd_sock_err: error in send : 5
W (294564) httpd_txrx: httpd_sock_err: error in recv : 5
W (294570) httpd_txrx: httpd_sock_err: error in send : 5
W (294573) httpd_txrx: httpd_sock_err: error in recv : 5
W (359995) httpd_txrx: httpd_sock_err: error in recv : 113
W (360301) httpd_txrx: httpd_sock_err: error in send : 104
W (360302) httpd_txrx: httpd_sock_err: error in recv : 104
W (360609) httpd_txrx: httpd_sock_err: error in send : 104
W (360610) httpd_txrx: httpd_sock_err: error in recv : 104

Who is online

Users browsing this forum: No registered users and 258 guests