Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to change retransmission timeout for a TCP socket?

1,147 views
Skip to first unread message

Freddan

unread,
Apr 4, 2003, 3:47:14 AM4/4/03
to
Hi,

I'm developing under RH 7.3 and making a TCP app.

How can I change the RTO (retransmission timout) parameters?

Thanks in advance.

Greetings Fredrik.

Neil Horman

unread,
Apr 4, 2003, 8:19:15 AM4/4/03
to

the sysctl files in /proc/sys/net/ipv4 contain all the adjustable tcp
parameters for tcp, but a quick look at the tcp man page suggests that
you won't find what your looking for there. There are send and receive
timeouts described in section 7 of the socket man page (SO_RCVTIMEO and
SO_SNDTIMEO), which may be what your looking for. Unfortunately for
you, the man page indicates that they can not be altered. It does
suggest, however, that if you need these parameters adjusted they can be
simulated with the alarm or setitimer calls.

HTH
Neil


Freddan

unread,
Apr 4, 2003, 9:38:52 AM4/4/03
to
Hello,

The problem is solved.

Just changed the TCP_RTO_MAX constant in the tcp.h file,
the tcp will be more aggressive but it's just used in a local
environment so...

Thanks,
Freddan.


Lew Pitcher

unread,
Apr 5, 2003, 10:47:46 PM4/5/03
to
Freddan wrote:
> Hello,
>
> The problem is solved.
>
> Just changed the TCP_RTO_MAX constant in the tcp.h file,
> the tcp will be more aggressive but it's just used in a local
> environment so...

I hope you recompiled your kernel to pick up the new value.


--
Lew Pitcher

Master Codewright and JOAT-in-training
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.

Freddan

unread,
Apr 7, 2003, 4:34:50 AM4/7/03
to
> I hope you recompiled your kernel to pick up the new value.
Yupp I did.


0 new messages