4

The Windows registry has a key TcpAckFrequency (default 2), which sets the number of TCP packets received before sending back an ACK packet. Also, there is a TcpDelAckTicks key defining the delay (default 2 i.e. 2 * 100 ms = 200 ms) after which an acknowledgment is sent anyway, even if TcpAckFrequency is not reached.

Is there any way to change (temporarily) these parameters using WinSock API or other APIs, but without modifying the registry?

Thank you very much in advance.

user207421
  • 305,947
  • 44
  • 307
  • 483
Faghio
  • 57
  • 4
  • 1
    not really the ack-frequency, you could en/disable the Nagle algorithm with setsockopt,IPPROTO_TCP,TCP_NODELAY. – harper May 25 '13 at 09:33
  • 1
    Thanks, but actually I am already disabling the Nagle algorithm, and it looks like it makes no difference for my particular problem (see [this post](http://stackoverflow.com/questions/16747777/bsd-sockets-setsockopt-option-to-avoid-waiting-for-acknowledge-before-next-send)). – Faghio May 25 '13 at 11:11
  • 1
    It's a global setting and will have 'effects' on other apps. – Martin James May 28 '13 at 14:16
  • You don't want to mess around with stuff like this. – user207421 Oct 29 '13 at 23:51

0 Answers0