directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r719010 - /directory/apacheds/branches/apacheds-mina2/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/AbstractProtocolService.java
Date Wed, 19 Nov 2008 16:51:11 GMT
Author: elecharny
Date: Wed Nov 19 08:51:11 2008
New Revision: 719010

URL: http://svn.apache.org/viewvc?rev=719010&view=rev
Log:
Updated tcpBacklog and udpBacklog if ipBacklog only is set.

Modified:
    directory/apacheds/branches/apacheds-mina2/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/AbstractProtocolService.java

Modified: directory/apacheds/branches/apacheds-mina2/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/AbstractProtocolService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-mina2/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/AbstractProtocolService.java?rev=719010&r1=719009&r2=719010&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-mina2/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/AbstractProtocolService.java
(original)
+++ directory/apacheds/branches/apacheds-mina2/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/AbstractProtocolService.java
Wed Nov 19 08:51:11 2008
@@ -362,7 +362,16 @@
 	 * @param ipBacklog the ipBacklog to set
 	 */
 	public void setIpBacklog(int ipBacklog) {
-		this.ipBacklog = ipBacklog;
+        if ( ipBacklog < 0  )
+        {
+            throw new IllegalArgumentException( "Invalid backlog number: " + ipBacklog );
+        }
+
+        this.ipBacklog = ipBacklog;
+        
+        // Now, substitute the existing values by the new one
+        tcpBacklog = ipBacklog;
+        udpBacklog = ipBacklog;
 	}
 
 



Mime
View raw message