Operating System - HP-UX
1833751 Members
2529 Online
110063 Solutions
New Discussion

where? TCP SO_KEEPALIVE and SO_RCVTIMEO

 
SOLVED
Go to solution
Todd McDaniel_1
Honored Contributor

where? TCP SO_KEEPALIVE and SO_RCVTIMEO

I am not familiar with these variables, can some one please advise me on where to find them on my hpux system?

TCP SO_KEEPALIVE and SO_RCVTIMEO


thanks.
Unix, the other white meat.
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: where? TCP SO_KEEPALIVE and SO_RCVTIMEO

Hi Todd:

See the 'ndd' manpages.

Regards!

...JRF..
Todd McDaniel_1
Honored Contributor

Re: where? TCP SO_KEEPALIVE and SO_RCVTIMEO

i cant find those variables in the tunables or when i try to run ndd -get

I have a client asking for this. I need a more direct answer please. I dont know what these parms are.
Unix, the other white meat.
Todd McDaniel_1
Honored Contributor

Re: where? TCP SO_KEEPALIVE and SO_RCVTIMEO

is this some thing that has to be configured? my /etc/rc.config.d/nddconf has no variables defined.

Are there default values?
Unix, the other white meat.
James R. Ferguson
Acclaimed Contributor

Re: where? TCP SO_KEEPALIVE and SO_RCVTIMEO

Hi Todd:

Actually, the values for a socket connection are specified by 'setsockopt()' when a socket is setup.

http://docs.hp.com/en/B2355-60105/getsockopt.2.html

...but are goverend by tunable kernel parameters:

http://docs.hp.com/en/B2355-60105/ndd.1M.html

Regards!

...JRF...
rick jones
Honored Contributor
Solution

Re: where? TCP SO_KEEPALIVE and SO_RCVTIMEO

While applications should be implementing their own "keepalive" mechanisms and not relying on the one in TCP, once an application has set SO_KEEPALIVE, the ndd settings tcp_keepalive_interval will be how soon it starts sending keepalive probes. They will be retransmitted as if they were data segments until tcp_ip_abort_interval milliseconds have elapsed since the first unanswered keepalive.

SO_RCVTIMEO may be present in some HP-UX include files, but it is never more than a noop. Any application relying on it will be sadly dissapointed and will need to use something along the lines of select(), poll() or /dev/poll instead.

So, to what ends were you planning on using SO_KEEPALIVE and SO_RCVTIMEO?
there is no rest for the wicked yet the virtuous have no pillows