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 2007/11/03 07:15:50 UTC

[jira] Commented: (DIRMINA-461) Possible TCP stall consideration

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

Trustin Lee commented on DIRMINA-461:
-------------------------------------

Current MINA I/O processor implementation in both 1.x and 2.x reads from the channel until the read buffer is full or the read() method returns 0.  

However, we can't keep reading as much as possible expanding the read buffer because too long read loop will break fairness between sessions.  Therefore, I/O processor stops reading if the current read buffer becomes full.  So, there's small possibility of TCP stall, but I recently added dynamic adjustment of the read buffer capacity, so the read buffer gradually increases if the buffer becomes full.  Once its capacity is increased, it will hopefully read() much more data in one read loop next time.

Consequently, I think TCP stall is being considered in MINA already.  Please let me know if you are actually experiencing TCP stall with MINA.  Otherwise, let me close this issue.



> Possible TCP stall consideration
> --------------------------------
>
>                 Key: DIRMINA-461
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-461
>             Project: MINA
>          Issue Type: Improvement
>          Components: Core
>            Reporter: immars
>
> Hello,
> There is a Mr. Michael T. Nygard explaining a TCP stall problem he met when dealing with java NIO:
> http://www.highscalability.com/comment/reply/168/360
> The main idea is to read as much data as possible when a channel is selected as readable to minimize the data cumulation in this socket's TCP buffer during thread scheduling.
> I haven't reproduced or verified this issue yet, however, I wonder is it a potential threat to MINA as well?
> Thanks.

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