summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
Diffstat (limited to 'ace')
-rw-r--r--ace/config-win32-common.h8
-rw-r--r--ace/config-win32-visualage.h8
2 files changed, 16 insertions, 0 deletions
diff --git a/ace/config-win32-common.h b/ace/config-win32-common.h
index 1ae6d04f108..a2b7e295f95 100644
--- a/ace/config-win32-common.h
+++ b/ace/config-win32-common.h
@@ -155,6 +155,14 @@
// ---------------- platform features or lack of them -------------
+// By default WIN32 has FD_SETSIZE of 64, which places the limit
+// between 61 and 64 on the number of clients a server using the
+// Select Reactor can support at the same time (i.e., 64 - standard in,
+// out, error). He we raise the limit to 1024. Adjust the definition
+// below if you need to raise or lower it.
+//
+#define FD_SETSIZE 1024
+
// Windows doesn't like 65536 ;-) If 65536 is specified, it is
// listenly ignored by the OS, i.e., setsockopt does not fail, and you
// get stuck with the default size of 8k.
diff --git a/ace/config-win32-visualage.h b/ace/config-win32-visualage.h
index ca61fa219f0..136206fe5de 100644
--- a/ace/config-win32-visualage.h
+++ b/ace/config-win32-visualage.h
@@ -18,6 +18,14 @@
#define ACE_CC_PREPROCESSOR ""
#define ACE_CC_PREPROCESSOR_ARGS ""
+// By default WIN32 has FD_SETSIZE of 64, which places the limit
+// between 61 and 64 on the number of clients a server using the
+// Select Reactor can support at the same time (i.e., 64 - standard in,
+// out, error). He we raise the limit to 1024. Adjust the definition
+// below if you need to raise or lower it.
+//
+#define FD_SETSIZE 1024
+
//These need to be defined for VisualAgeC++
#define ERRMAX 256 /* Needed for following define */
#define ACE_LACKS_SYS_NERR /* Needed for sys_nerr in Log_Msg.cpp */