We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b9e9a3 commit 11479e5Copy full SHA for 11479e5
components/net/lwip-2.0.2/src/api/sockets.c
@@ -410,8 +410,6 @@ lwip_tryget_socket(int s)
410
return tryget_socket(s);
411
}
412
413
-
414
415
/**
416
* Allocate a new socket for a given netconn.
417
*
@@ -443,6 +441,9 @@ alloc_socket(struct netconn *newconn, int accepted)
443
441
sockets[i].sendevent = (NETCONNTYPE_GROUP(newconn->type) == NETCONN_TCP ? (accepted != 0) : 1);
444
442
sockets[i].errevent = 0;
445
sockets[i].err = 0;
+#ifdef SAL_USING_POSIX
+ rt_wqueue_init(&sockets[i].wait_head);
446
+#endif
447
return i + LWIP_SOCKET_OFFSET;
448
449
SYS_ARCH_UNPROTECT(lev);
0 commit comments