mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
![]() With SMP as soon as we add the new sockfd to the fds table, in the case we load-balanced the fd on to a different pt, service on it becomes live immediately and concurrently. This can lead to the unexpected situation that while we think we're still initing the new wsi from our thread, it can have lived out its whole life concurrently from another service thread. Add a volatile flag to inform the owning pt that if it wants to service the wsi during this init window, it must wait and retry next time around the event loop. |
||
---|---|---|
.. | ||
adopt.c | ||
client.c | ||
close.c | ||
connect.c | ||
dummy-callback.c | ||
network.c | ||
output.c | ||
pollfd.c | ||
private.h | ||
server.c | ||
service.c | ||
stats.c | ||
vhost.c | ||
wsi-timeout.c | ||
wsi.c |