[
https://issues.apache.org/jira/browse/DIRMINA-522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kevin Koltzau closed DIRMINA-522.
---------------------------------
> 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.