Browse Source

possibly make tor build and run on cygwin again.

svn:r8353
Roger Dingledine 18 years ago
parent
commit
25cb9453d7
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/or/or.h

+ 6 - 0
src/or/or.h

@@ -80,7 +80,13 @@
 
 
 /** Upper bound on maximum simultaneous connections; can be lowered by
 /** Upper bound on maximum simultaneous connections; can be lowered by
  * config file. */
  * config file. */
+#ifdef CYGWIN
+/* http://archives.seul.org/or/talk/Aug-2006/msg00210.html */
+#define MAXCONNECTIONS 3200
+#else
+/* very high by default. "nobody should need more than this..." */
 #define MAXCONNECTIONS 15000
 #define MAXCONNECTIONS 15000
+#endif
 
 
 #ifdef MS_WINDOWS
 #ifdef MS_WINDOWS
 /* No, we don't need to redefine FD_SETSIZE before including winsock:
 /* No, we don't need to redefine FD_SETSIZE before including winsock: