[ 
https://issues.apache.org/jira/browse/DIRMINA-976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14129643#comment-14129643
 ] 

Emmanuel Lecharny commented on DIRMINA-976:
-------------------------------------------

The counters were badly protected against concurrent access. This has been 
fixed recently, but it would be valuable to check that those counters are 
correctly handled even if we have an exception.

The scheduledWriteBytes counter is updated in two places :
- in the session
- in the service

Now, I suspect the scheduledWriteBytes counter is updated in two different 
places, leading to inconsistancies. To be double checked.

> ScheduledWriteBytes Increases after Exception on Writing
> --------------------------------------------------------
>
>                 Key: DIRMINA-976
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-976
>             Project: MINA
>          Issue Type: Bug
>    Affects Versions: 2.0.7
>            Reporter: Henning Rohlfs
>             Fix For: 2.0.8
>
>         Attachments: Mina2MinaClient.java, Mina2MinaServer.java
>
>
> If an exception occurs during sending of a message with another message in 
> the queue already, there's a chance that the fields scheduledWriteBytes and 
> scheduledWriteMessages in the IoAcceptor never return to 0.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to