Close nagle algorithm

When writing TCP communication, there is a very small data packets, resulting in stick package can use the following methods to try.

But, sometimes it does not solve the problem

Function does not work by setsockopt

Registry HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Tcpip \ Parameters \ Interface \ back of a string of numbers represent a network card, which has IPadress identify the IP easy to distinguish which NIC card

Inside the new DWORD key named

TcpAckFrequency and TCPNoDelay 

Assignment 1

Save the registry, restart the computer or restart the card

Guess you like

Origin www.cnblogs.com/sea-li-828/p/12036538.html