mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niklas Gustavsson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FTPSERVER-304) The Idle Timeout set in the listener configuration does not have any effect
Date Sun, 24 May 2009 18:37:45 GMT

    [ https://issues.apache.org/jira/browse/FTPSERVER-304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712586#action_12712586

Niklas Gustavsson commented on FTPSERVER-304:

You're correct, that's a bug in the code (having the user limit set to 0 will always use that).

Would the following code solve both issues?
        if(listenerTimeout <= 0 || 
                (maxIdleTime > 0 && maxIdleTime < listenerTimeout)) {

If the listener value is unlimited, use the user limit
If the user limit is zero, then the listener limit would be used
If the user value is less than the listener value (which is not unlimited), use the user value

> The Idle Timeout set in the listener configuration does not have any effect
> ---------------------------------------------------------------------------
>                 Key: FTPSERVER-304
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-304
>             Project: FtpServer
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.1
>            Reporter: Sai Pullabhotla
>             Fix For: 1.0.2
> As reported on the mailing list by Johannes, I confirmed that the idle timeout set on
the listener factory did not have any effect. The connection/session is still good long after
the specified idle timeout. As far as I can remember this used to work fine in pre-1.0 releases.
We also have to make sure that the idle timeout on the data connections works. 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message