diff --git a/components/lwip/api/sockets.c b/components/lwip/api/sockets.c index 7335246eb..33d4a97e7 100755 --- a/components/lwip/api/sockets.c +++ b/components/lwip/api/sockets.c @@ -1501,6 +1501,7 @@ lwip_socket(int domain, int type, int protocol) i = alloc_socket(conn, 0); if (i == -1) { + LWIP_DEBUGF(SOCKETS_DEBUG, ("-1 / ENFILE (could not allocate socket)\n")); netconn_delete(conn); set_errno(ENFILE); return -1;