Large amount of CLOSE-WAIT
BUG REPORT
Stack Trace or error message
Expected Behavior
Sia should clean up the connections properly and promptly and have some basic resilience against abuse
Observed Behavior
Sia host is easily incapacitated by a large number of slow connections:
$ ss -t | grep 9982 | grep ESTAB | wc -l
66
$ ss -t | grep 9982 | grep CLOSE-WAIT | wc -l
2248
Sia host wasn't able to accept any new connections in this case
How to reproduce it (as minimally and precisely as possible)
Set up a new host and announce it
Environment
- Sia version: local build from git Sia Client Version 1.5.6-master Git Revision 0b253ab1 Build Time 2021年 05月 31日 星期一 16:43:08 PDT
- OS: Linux 5.10.0-6-amd64 #1 (closed) SMP Debian 5.10.28-1 (2021-04-09) x86_64 GNU/Linux