From: serassio <> Date: Sat, 2 Sep 2006 19:14:25 +0000 (+0000) Subject: Windows port: increase number of FDs to the maximum supported from CRT at X-Git-Tag: SQUID_3_0_PRE5~150 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ac433c18f42b48667002d1c3ee74517fabfb24b;p=thirdparty%2Fsquid.git Windows port: increase number of FDs to the maximum supported from CRT at service startup. --- diff --git a/src/win32.cc b/src/win32.cc index fffc6cf01c..3e0a89f844 100644 --- a/src/win32.cc +++ b/src/win32.cc @@ -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 */