You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "TzeKai Lee (JIRA)" <ji...@apache.org> on 2011/06/20 09:03:47 UTC

[jira] [Updated] (PROTOCOLS-23) Incorrect counting on connection limit

     [ https://issues.apache.org/jira/browse/PROTOCOLS-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

TzeKai Lee updated PROTOCOLS-23:
--------------------------------

    Attachment: ConnectionLimit.patch

The patch should fix this issue.

> Incorrect counting on connection limit
> --------------------------------------
>
>                 Key: PROTOCOLS-23
>                 URL: https://issues.apache.org/jira/browse/PROTOCOLS-23
>             Project: JAMES Protocols
>          Issue Type: Bug
>            Reporter: TzeKai Lee
>            Assignee: Norman Maurer
>         Attachments: ConnectionLimit.patch
>
>
> The counter in ConnectionLimitUpstreamHandler and ConnectionPerIpLimitUpstreamHandler will decrease one more than expected when the connection reaches limit, therefore the handler can not really limit connection numbers.
> Say, if the limit is set to 2, connections will go like 0 -> 1 -> 2 -> refused -> 3 -> refused -> 4.
> And the total connection limit counter is offseted by 1.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org