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

Jonathan Ellis commented on THRIFT-904:
---------------------------------------

The problem is that tcp delayed ack pretty much renders nagle an obsolete 
feature (http://www.stuartcheshire.org/papers/NagleDelayedAck/); this is the 
source of the poor performance reported here.  You really have to "manually 
nagle" (i.e. buffer) instead of hoping the tcp stack does it for you.

> C# TSocket should disable nagle and linger
> ------------------------------------------
>
>                 Key: THRIFT-904
>                 URL: https://issues.apache.org/jira/browse/THRIFT-904
>             Project: Thrift
>          Issue Type: Bug
>          Components: C# - Library
>            Reporter: Jonathan Ellis
>            Assignee: Alexey Biryukov
>             Fix For: 0.6
>
>         Attachments: thrift-904.patch, thrift-904.tests.patch
>
>
> Java sets
>       socket_.setSoLinger(false, 0);
>       socket_.setTcpNoDelay(true);
> C# should do the equivalent.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to