소스 검색

* LEAF bots dont need 200 dcc connections

svn: 1216
Bryan Drewery 22 년 전
부모
커밋
b2ad66fcd5
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 7 2
      src/dccutil.c

+ 7 - 2
src/dccutil.c

@@ -31,8 +31,13 @@ static struct portmap 	*root = NULL;
 
 int	connect_timeout = 15;		/* How long to wait before a telnet
 					   connection times out */
-int         max_dcc = 200;              /* needs at least 4 or 5 just to
-                                           get started. 20 should be enough   */
+#ifdef HUB
+int         max_dcc = 200;
+#endif /* HUB */
+#ifdef LEAF
+int         max_dcc = 30;
+#endif /* LEAF */
+
 static int         dcc_flood_thr = 3;
 
 void init_dcc_max()