Fix Issue With Retrieving An Ip Adress When Under High Load. #18
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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