1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

smp: unable to check for fd reuse since another thread can accept it

This commit is contained in:
Andy Green 2020-08-31 08:51:13 +01:00
parent 1e0da366be
commit b49a1460e9

View file

@ -81,6 +81,13 @@ int
sanity_assert_no_sockfd_traces(const struct lws_context *context,
lws_sockfd_type sfd)
{
#if LWS_MAX_SMP > 1
/*
* We can't really do this test... another thread can accept and
* reuse the closed fd
*/
return 0;
#else
struct lws **p, **done;
if (sfd == LWS_SOCK_INVALID)
@ -108,6 +115,7 @@ sanity_assert_no_sockfd_traces(const struct lws_context *context,
assert(0); /* this fd is still in the tables */
return 1;
#endif
}
#endif