]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows port: increase number of FDs to the maximum supported from CRT at
authorserassio <>
Sat, 2 Sep 2006 19:14:25 +0000 (19:14 +0000)
committerserassio <>
Sat, 2 Sep 2006 19:14:25 +0000 (19:14 +0000)
service startup.

src/win32.cc

index fffc6cf01cff1a3e97815b7eb677e1186771e3a9..3e0a89f844a429b5dd14d72df75e824baf2a72b1 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: win32.cc,v 1.20 2006/08/28 10:11:10 serassio Exp $
+ * $Id: win32.cc,v 1.21 2006/09/02 13:14:25 serassio Exp $
  *
  * * * * * * * * Legal stuff * * * * * * *
  *
@@ -523,6 +523,10 @@ int WIN32_Subsystem_Init(int * argc, char *** argv)
         svcStatus.dwCheckPoint = 0;
         svcStatus.dwWaitHint = 10000;
         SetServiceStatus(svcHandle, &svcStatus);
+#ifdef _SQUID_MSWIN_
+
+        _setmaxstdio(Squid_MaxFD);
+#endif
     }
 
 #endif /* USE_WIN32_SERVICE */