6452679 AF_UNIX sockets should allow much more than 128 outstanding connections
authorakolb
Wed, 02 Aug 2006 17:08:49 -0700
changeset 2486 49298d2b2046
parent 2485 ab730117dc8f
child 2487 5c45eadcc8b4
6452679 AF_UNIX sockets should allow much more than 128 outstanding connections
usr/src/uts/common/io/tl.c
--- a/usr/src/uts/common/io/tl.c	Wed Aug 02 08:27:50 2006 -0700
+++ b/usr/src/uts/common/io/tl.c	Wed Aug 02 17:08:49 2006 -0700
@@ -375,7 +375,6 @@
  */
 #define	NEXTSTATE(EV, ST)	ti_statetbl[EV][ST]
 
-#define	TL_MAXQLEN	128	/* Max conn indications allowed. */
 #define	BADSEQNUM	(-1)	/* initial seq number used by T_DISCON_IND */
 #define	TL_BUFWAIT	(10000)	/* usecs to wait for allocb buffer timeout */
 #define	TL_TIDUSZ (64*1024)	/* tidu size when "strmsgz" is unlimited (0) */
@@ -562,6 +561,12 @@
 #define	TL_SOUX_ADDRLEN sizeof (soux_addr_t)
 
 /*
+ * Maximum number of unaccepted connection indications allowed per listener.
+ */
+#define	TL_MAXQLEN	4096
+int tl_maxqlen = TL_MAXQLEN;
+
+/*
  *	transport endpoint structure
  */
 struct tl_endpt {
@@ -2391,8 +2396,8 @@
 	/* negotiate max conn req pending */
 	if (IS_COTS(tep)) {
 		qlen = bind->CONIND_number;
-		if (qlen > TL_MAXQLEN)
-			qlen = TL_MAXQLEN;
+		if (qlen > tl_maxqlen)
+			qlen = tl_maxqlen;
 	}
 
 	/*