If there are too many clients crawling the site, the string ServerUtils::get_ip(const int client_fd) function returns "getpeername: Bad file descriptor".
If there are too many clients crawling the site, the `string ServerUtils::get_ip(const int client_fd)` function returns "getpeername: Bad file descriptor".
owner
added this to the AI Tarpit project 2025-05-11 11:51:09 +00:00
My system has 1024 file descriptors by default. By raising it, it will work. Do keep in mind that this error only happens under high amount of clients hammering on the server, and with a wait time of 75ms per paragraph sent to the client.
Set a higher limit with: ulimit -n 65535
My system has 1024 file descriptors by default. By raising it, it will work. Do keep in mind that this error only happens under high amount of clients hammering on the server, and with a wait time of 75ms per paragraph sent to the client.
Set a higher limit with: `ulimit -n 65535`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
If there are too many clients crawling the site, the
string ServerUtils::get_ip(const int client_fd)function returns "getpeername: Bad file descriptor".My system has 1024 file descriptors by default. By raising it, it will work. Do keep in mind that this error only happens under high amount of clients hammering on the server, and with a wait time of 75ms per paragraph sent to the client.
Set a higher limit with:
ulimit -n 65535