On 11/10/06, Noel J. Bergman <[EMAIL PROTECTED]> wrote:
+        // not sure why this isn't just backlog, but empirically, I'm
+        // getting a few more connections than I should.  I've tested
+        // 2 and 4 (as well as 0, of course), and the result is
+        // consistent on Ubuntu 2.6.12-10-amd64-k8-smp: <3 means that
+        // the connection that should fail succeeds and >3 means that
+        // a connection intended to backlog fails.
+        final Socket connection[] = new Socket[backlog+3];

Would people please try this unit test on their systems, and let me know what 
results they are seeing?  I have tested this code on Ubuntu 
2.6.12-10-amd64-k8-smp and CentOS 2.6.9-42.0.3.EL with the same results.

Sure. MacOS:

Testcase: testConnectionLimitExceeded took 1.006 sec
       FAILED
connection #3 established
junit.framework.AssertionFailedError: connection #3 established
       at 
org.apache.james.smtpserver.SMTPServerTest.testConnectionLimitExceeded(SMTPServerTest.java:1077)

(Sorry, just running the test, no time trying to figure out why this
happens... Hope this helps anyway)

 Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to