Fix of mixup bwtween SOMAXCONN and SO_MAXCONN.
authorRichard Levitte <levitte@openssl.org>
Fri, 29 Mar 2002 23:48:29 +0000 (23:48 +0000)
committerRichard Levitte <levitte@openssl.org>
Fri, 29 Mar 2002 23:48:29 +0000 (23:48 +0000)
Furthermore, make SO_MAXCONN the first choice, since that's the standard
(as far as I know).

crypto/bio/b_sock.c

index 7dfcbab769cd0e20ebd66510d93b96fcd87d5fdc..8fb0716e7fb57b4ef23824005e82e442891463da 100644 (file)
@@ -72,9 +72,9 @@
 #endif
 
 #ifdef SO_MAXCONN
-#define MAX_LISTEN  SOMAXCONN
-#elif defined(SO_MAXCONN)
 #define MAX_LISTEN  SO_MAXCONN
+#elif defined(SOMAXCONN)
+#define MAX_LISTEN  SOMAXCONN
 #else
 #define MAX_LISTEN  32
 #endif