Tentacle has not previously made any restrictions on the number of transport connections, which may lead to fd attacks. The good news is that the consequence of the fd attack is only that the listening service will be closed, and it will not affect the established connection. But we should fix it.
The fd create on std::sys::net, and it will call by tokio::tcplistener::poll_accpet, their calling relationship is as follows:
tokio -> mio -> std net -> std sys common -> std sys net -> std sys fd -> syscall
Tentacle has not previously made any restrictions on the number of transport connections, which may lead to fd attacks. The good news is that the consequence of the fd attack is only that the listening service will be closed, and it will not affect the established connection. But we should fix it.
The fd create on std::sys::net, and it will call by
tokio::tcplistener::poll_accpet
, their calling relationship is as follows:tokio -> mio -> std net -> std sys common -> std sys net -> std sys fd -> syscall