mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
On systems that don't have getrlimit (like windows), we were artificially
constraining ourselves to a max of 1024 connections. Now if there is no getrlimit, just assume that we can handle the whole 15000 connections. The better answer is to find a getrlimit equivalent on Windows, but hey, one step at a time. svn:r5854
This commit is contained in:
+2
-2
@@ -450,8 +450,8 @@ set_max_file_descriptors(unsigned long limit, unsigned long cap)
|
||||
#ifndef HAVE_GETRLIMIT
|
||||
log_fn(LOG_INFO, LD_NET,
|
||||
"This platform is missing getrlimit(). Proceeding.");
|
||||
if (limit > cap) {
|
||||
log(LOG_INFO, LD_CONFIG, "ConnLimit must be at most %d. Capping it.", cap);
|
||||
if (limit < cap) {
|
||||
log(LOG_INFO, LD_CONFIG, "ConnLimit must be at most %d. Using that.", cap);
|
||||
limit = cap;
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user