Disable TCP Delayed ACKs

前端 未结 3 976
一向
一向 2020-12-08 07:50

I have an application that receives relatively sparse traffic over TCP with no application-level responses. I believe the TCP stack is sending delayed ACKs (based on glanci

3条回答
  •  囚心锁ツ
    2020-12-08 08:35

    I believe using the setsockopt() function you can use the TCP_NODELAY which will disable the Nagle algorithm.

    Edit Found a link: http://www.ibm.com/developerworks/linux/library/l-hisock.html

    Edit 2 Tom is correct. Nagle does not affect Delayed ACKs.

提交回复
热议问题