Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rqbit is acceptible to connection exhaution problem #311

Open
izderadicka opened this issue Jan 20, 2025 · 1 comment
Open

rqbit is acceptible to connection exhaution problem #311

izderadicka opened this issue Jan 20, 2025 · 1 comment

Comments

@izderadicka
Copy link
Contributor

I run into problem with rqbit, when running it as service/daemon on Linux - after about 2 days of running it I saw that there 20k connections in WAIT-CLOSE state and also a lot of connections in FIN_WAIT state. It actually brought down TCP on linux machine to pathetic performance - tens of KB/s.

My "theory" is that rqbit is accepting connections without any limitation - after while a lot of peers is trying to connect as we are visible in DHT. It's then kind of DoS TCP attack - and that was actually how I solved it - set up DoS protection on my router/fw - which rate limits number of new TCP connections.

Just wondering if something can be done in rqbit direcly - limit a rate of new incoming TCP connections.

@ikatson
Copy link
Owner

ikatson commented Jan 20, 2025

The only limit that exists right now afaik is 128 (hard coded) outgoing connections per torrent. Definitely introducing more limits, including the number of accepted connections makes sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants