浏览代码

possibly make tor build and run on cygwin again.

svn:r8353
Roger Dingledine 18 年之前
父节点
当前提交
25cb9453d7
共有 1 个文件被更改,包括 6 次插入0 次删除
  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
  * 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
+#endif
 
 #ifdef MS_WINDOWS
 /* No, we don't need to redefine FD_SETSIZE before including winsock: