swooletw / laravel-swoole

High performance HTTP server based on Swoole. Speed up your Laravel or Lumen applications.
MIT License
4.04k stars 390 forks source link

Bug ! http requests fired room->delete and it collapses #479

Closed pslxx closed 3 years ago

pslxx commented 3 years ago

http requests completed will fire websocket leave Event

then leave event will preform room->delete method

but room delete only reset one row that fd as key,,value is empty array

so the table of fds will More and more big

And then it collapses

image

Arkanius commented 3 years ago

Please, follow our issue guideline

pslxx commented 3 years ago

@Arkanius Can you tell me why this happens and how to fix it

tks~

Arkanius commented 3 years ago

I'm not sure if I understood your problem. The fd should be the same for all connections.

pslxx commented 3 years ago

I'm not sure if I understood your problem. The fd should be the same for all connections.

OK,but Http request fired Websocket leave event, then Websocket leave fired Table::delete method

Table::delete dont remove expired fd,,,,,