views:

460

answers:

3

I have an small server/client test program I am running over a radio link using TCP/IP and I noticed with wireshark that I am getting a lot of retransmits due to high latency. How do I increase the window my program waits for an ACK before attempting retransmission?

Update on OS: The server is running Linux, the Client is on Windows

+1  A: 

In Linux, you can try playing with the TCP_WINDOW_CLAMP and the other options from http://lxr.linux.no/linux+v2.6.30/include/linux/tcp.h#L85 . They can be set by using setsockopt (man 3 setsockopt), I think.

tsg
A: 

Definitely this question needs some clarification.
IMO, best solution should be to switch to asynchronous sockets. This way timeout handling is all yours.

Andrejs Cainikovs
A: 

Windows and Linux both ask you to configure parameter values. You could do that either on the server side or on the client side .. So which ever method suits you try it.

Thunderboltz