You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Trustin Lee (JIRA)" <ji...@apache.org> on 2008/02/20 04:38:44 UTC

[jira] Resolved: (DIRMINA-522) Remove unused code in RequestResponseFilter

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

Trustin Lee resolved DIRMINA-522.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-M2
         Assignee: Trustin Lee

Thanks!  That code block has been removed.

> Remove unused code in RequestResponseFilter
> -------------------------------------------
>
>                 Key: DIRMINA-522
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-522
>             Project: MINA
>          Issue Type: Bug
>          Components: Filter
>    Affects Versions: 2.0.0-M1
>            Reporter: Kevin Koltzau
>            Assignee: Trustin Lee
>            Priority: Trivial
>             Fix For: 2.0.0-M2
>
>
> RequestResponseFilter.doFilterWrite contains the following code, which creates a Date object that is never used.
>         // Schedule a task to be executed on timeout.
>         // Find the timeout date avoiding overflow.
>         Date timeoutDate = new Date(System.currentTimeMillis());
>         if (Long.MAX_VALUE - request.getTimeoutMillis() < timeoutDate
>                 .getTime()) {
>             timeoutDate.setTime(Long.MAX_VALUE);
>         } else {
>             timeoutDate.setTime(timeoutDate.getTime()
>                     + request.getTimeoutMillis());
>         }

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