Return-Path: X-Original-To: apmail-james-server-user-archive@www.apache.org Delivered-To: apmail-james-server-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4533E2AF for ; Tue, 12 Feb 2013 15:11:44 +0000 (UTC) Received: (qmail 76538 invoked by uid 500); 12 Feb 2013 15:11:44 -0000 Delivered-To: apmail-james-server-user-archive@james.apache.org Received: (qmail 76509 invoked by uid 500); 12 Feb 2013 15:11:44 -0000 Mailing-List: contact server-user-help@james.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "James Users List" Reply-To: "James Users List" Delivered-To: mailing list server-user@james.apache.org Received: (qmail 76453 invoked by uid 99); 12 Feb 2013 15:11:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 15:11:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.220.181] (HELO mail-vc0-f181.google.com) (209.85.220.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 15:11:37 +0000 Received: by mail-vc0-f181.google.com with SMTP id d16so109166vcd.12 for ; Tue, 12 Feb 2013 07:11:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:reply-to:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding:x-gm-message-state; bh=Jw3exqsBeCWQmQgnogd7X2zYYAZDueCtBfe2MQDmdTs=; b=aLK7jbPLyRTYup1yPUmpBvesStJBpTHUORaEShvDWw5BWEX7rp9QKKVVGLC09OeWgq XgrPo9HgdKLJptHC4dn7F2E5VU8dP9Pl/LOW4u+4rFHBWJKGvBppVarPHyMdtVSpKRTT smzjWnNm+pNFCQwtwqiG01wVcFE9CtIPY2/xkfAgJV4q557pTv4lrdRmuHXNWiaW6nTD mHmDxLjylyJgzyst7NRmTFOY2PUVjQ8I9BEBRV1gGQg1CvTuFgRwnPyG9l+qij2Yo2Jt PWIXapPLHEL4UxlwW/2IQEg6VLpMNRcYgLF6CZkhV00Ywvwgt0LFmsb0lN1XybS859ji npZw== X-Received: by 10.221.10.72 with SMTP id oz8mr24728604vcb.36.1360681869049; Tue, 12 Feb 2013 07:11:09 -0800 (PST) Received: from new-host.home (pool-72-83-84-205.washdc.east.verizon.net. [72.83.84.205]) by mx.google.com with ESMTPS id qj8sm64638389veb.2.2013.02.12.07.11.07 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Feb 2013 07:11:08 -0800 (PST) Message-ID: <511A5B8B.20504@nitorgroup.com> Date: Tue, 12 Feb 2013 10:11:07 -0500 From: Phillip Odam Reply-To: phillip.odam@nitorgroup.com User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: James Users List Subject: Re: Using connectionBacklog References: <511920A9.5000004@nitorgroup.com> <5119E542.40708@apache.org> In-Reply-To: <5119E542.40708@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQno70r0qpkOh/hwMCDibM2V6U6iIwvjzyPd5q40UIVW7JQRkM1i/NNlrOGqv2RVT69NDBPQ X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the response Eric. I must admit I had thought the backlog count would not include the current connections. However when testing I also tried a greater number for backlog e.g. connectionBacklog = 200 connectionLimit = 1 And I'm still only able to make one connection and all subsequent connections are immediately rejected. Has anyone seen backlog working in james? Phillip On 2/12/13 1:46 AM, Eric Charles wrote: > Hi, > > If you set backlog=1, the socket can not queue more than one request at > a time. So if the socket is already busy with one connection, a second > connection request will be simply rejected. The backlog property is > given to netty for its bootstrap. > > The connectionLimit is implemented with Netty handlers which rejects > connection if you have already more open connection than the given number. > > Thx, Eric > > > On 11/02/2013 16:47, Phillip Odam wrote: >> Can anyone confirm successful use of connectionBacklog for the smtp >> service on james 3.0 beta4 (or any v3). Successful use of >> connectionBacklog for any of the other services e.g. imap, lmtp and pop3 >> is also of interest as under the covers the code is all common. >> >> Firstly I gather the connectionBacklog setting is controlling the >> backlog just as is done in >> http://docs.oracle.com/javase/6/docs/api/java/net/ServerSocket.html >> >> Secondly comparing the code >> - >> http://svn.apache.org/repos/asf/james/protocols/trunk/netty/src/main/java/org/apache/james/protocols/netty/AbstractAsyncServer.java >> >> >> - >> http://svn.apache.org/repos/asf/james/protocols/tags/protocols-1.6.2/netty/src/main/java/org/apache/james/protocols/netty/AbstractAsyncServer.java >> >> >> >> reports no differences so apart from the different versions of netty >> between beta4 and where beta5 development is there should be no >> difference with the backlog between beta4 and the current development >> stream. >> >> >> Changing the connectionBacklog value does cause the startup log entry >> (SMTP Service connection backlog is: XXX) to change accordingly, >> however... >> >> SETUP >> ----- >> >> connectionBacklog = 1 >> connectionLimit = 1 >> >> TESTING >> ------- >> >> With two command lines, use telnet to connect to the smtp service, the >> first telnet instance will establish a connection. >> >> The second instance reports back immediately that a connection can not >> be established, whereas I would expect the second instance to hang and >> either establish a connection when the first telnet instance disconnects >> or a timeout occurs. >> >> >> Testing thus far has not been in a controlled environment so the backlog >> issue may well not be with james, but before I go much further I wanted >> to see what anyone else out there is seeing. >> >> Thanks >> Phillip >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org >> For additional commands, e-mail: server-user-help@james.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org > For additional commands, e-mail: server-user-help@james.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org For additional commands, e-mail: server-user-help@james.apache.org