Commit f1864dff authored by Roger Dingledine's avatar Roger Dingledine
Browse files

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
parent 5521b5de
Loading
Loading
Loading
Loading
+2 −2
Changes for src/common/compat.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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