|
|
@ -10,7 +10,9 @@ |
|
|
|
#include "console.h" |
|
|
|
#include "console.h" |
|
|
|
#include "slip.h" |
|
|
|
#include "slip.h" |
|
|
|
#include "cmd.h" |
|
|
|
#include "cmd.h" |
|
|
|
|
|
|
|
#ifdef SYSLOG |
|
|
|
#include "syslog.h" |
|
|
|
#include "syslog.h" |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#define SKIP_AT_RESET |
|
|
|
#define SKIP_AT_RESET |
|
|
|
|
|
|
|
|
|
|
@ -405,12 +407,16 @@ serbridgeConnectCb(void *arg) |
|
|
|
#ifdef SERBR_DBG |
|
|
|
#ifdef SERBR_DBG |
|
|
|
os_printf("Accept port %d, conn=%p, pool slot %d\n", conn->proto.tcp->local_port, conn, i); |
|
|
|
os_printf("Accept port %d, conn=%p, pool slot %d\n", conn->proto.tcp->local_port, conn, i); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef SYSLOG |
|
|
|
syslog(SYSLOG_FAC_USER, SYSLOG_PRIO_NOTICE, "esp-link", "Accept port %d, conn=%p, pool slot %d\n", conn->proto.tcp->local_port, conn, i); |
|
|
|
syslog(SYSLOG_FAC_USER, SYSLOG_PRIO_NOTICE, "esp-link", "Accept port %d, conn=%p, pool slot %d\n", conn->proto.tcp->local_port, conn, i); |
|
|
|
|
|
|
|
#endif |
|
|
|
if (i==MAX_CONN) { |
|
|
|
if (i==MAX_CONN) { |
|
|
|
#ifdef SERBR_DBG |
|
|
|
#ifdef SERBR_DBG |
|
|
|
os_printf("Aiee, conn pool overflow!\n"); |
|
|
|
os_printf("Aiee, conn pool overflow!\n"); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef SYSLOG |
|
|
|
syslog(SYSLOG_FAC_USER, SYSLOG_PRIO_WARNING, "esp-link", "Aiee, conn pool overflow!\n"); |
|
|
|
syslog(SYSLOG_FAC_USER, SYSLOG_PRIO_WARNING, "esp-link", "Aiee, conn pool overflow!\n"); |
|
|
|
|
|
|
|
#endif |
|
|
|
espconn_disconnect(conn); |
|
|
|
espconn_disconnect(conn); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|