From 1e3dd2a4fad3146f6335c3c82408e843038d014e Mon Sep 17 00:00:00 2001 From: Stephen Casner Date: Fri, 11 Aug 2017 14:06:06 -0700 Subject: [PATCH] Add missing debug log message for out-of-sockets case Merges https://github.com/espressif/esp-idf/pull/903 --- components/lwip/api/sockets.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/lwip/api/sockets.c b/components/lwip/api/sockets.c index 7335246eb9..33d4a97e79 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; -- 2.40.0