You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Emmanuel Lecharny <el...@gmail.com> on 2010/06/17 10:32:09 UTC

Naggle algo disablig (was Re: DIRMINA-790: 2.0.0M6 + 2.0.0RC1: Win7 performance issue)

On 6/17/10 9:31 AM, Zigor Salvador wrote:
> Related question below.
>
> On 17 Jun 2010, at 09:24, Emmanuel Lecharny wrote:
>
>    
>> On 6/17/10 9:07 AM, Jens Reimann wrote:
>>      
>>> I actually have and still am not sure what the cause is.
>>>
>>> I have an application that uses plain TCP Client/Server communication and
>>> sends a lot of small messages trough a custom Codec which converts it to
>>> IoBuffers.
>>>
>>> This all works fine on MacOS and Linux but on some (not all) Windows XP
>>> machines there is a problem that data that passed through the protocol
>>> codec does not get written to the socket.
>>>
>>>        
>> Sounds liek you didn't disabled the Naggle algorithm. You have to set
>> the TcpNoDelay flag by calling the setTcpNoDelay( true ) method.
>>      
> Would this be the right way to achieve that?
>
> connector.getSessionConfig().setTcpNoDelay(true);
>    

Yes.

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com



Re: Naggle algo disablig (was Re: DIRMINA-790: 2.0.0M6 + 2.0.0RC1: Win7 performance issue)

Posted by Zigor Salvador <Zi...@tourgune.org>.
Thank you and sorry for the background noise.

Zigor.

On 17 Jun 2010, at 10:32, Emmanuel Lecharny wrote:

> On 6/17/10 9:31 AM, Zigor Salvador wrote:
>> Related question below.
>> 
>> On 17 Jun 2010, at 09:24, Emmanuel Lecharny wrote:
>> 
>> 
>>> On 6/17/10 9:07 AM, Jens Reimann wrote:
>>> 
>>>> I actually have and still am not sure what the cause is.
>>>> 
>>>> I have an application that uses plain TCP Client/Server communication and
>>>> sends a lot of small messages trough a custom Codec which converts it to
>>>> IoBuffers.
>>>> 
>>>> This all works fine on MacOS and Linux but on some (not all) Windows XP
>>>> machines there is a problem that data that passed through the protocol
>>>> codec does not get written to the socket.
>>>> 
>>>> 
>>> Sounds liek you didn't disabled the Naggle algorithm. You have to set
>>> the TcpNoDelay flag by calling the setTcpNoDelay( true ) method.
>>> 
>> Would this be the right way to achieve that?
>> 
>> connector.getSessionConfig().setTcpNoDelay(true);
>> 
> 
> Yes.
> 
> -- 
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.nextury.com
> 
>