]> granicus.if.org Git - esp-idf/commitdiff
Add missing debug log message for out-of-sockets case
authorStephen Casner <casner@acm.org>
Fri, 11 Aug 2017 21:06:06 +0000 (14:06 -0700)
committerAngus Gratton <gus@projectgus.com>
Wed, 30 Aug 2017 07:55:00 +0000 (17:55 +1000)
Merges https://github.com/espressif/esp-idf/pull/903

components/lwip/api/sockets.c

index 7335246eb93b2e276e14a0d5287a00dbf9c9ac57..33d4a97e793b3d801a1c7835aec85f6c5431d9ae 100755 (executable)
@@ -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;