z  -
z -

Reputation: 7168

Setting TCP Retransmission Timeout in C

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

Upvotes: 0

Views: 3340

Answers (3)

Thunderboltz
Thunderboltz

Reputation: 1627

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.

Upvotes: 0

Andrejs Cainikovs
Andrejs Cainikovs

Reputation: 28434

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

Upvotes: 0

tsg
tsg

Reputation: 2041

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.

Upvotes: 2

Related Questions