Operating System - HP-UX
1833788 Members
2254 Online
110063 Solutions
New Discussion

Re: Want to kill socket connections

 
EDMS SST
Occasional Advisor

Want to kill socket connections

We are running 10.20 and are trying to find a system solution
for a possible application problem. I would like to drop a socket
connection after the specified tcp_keepstart interval without sending
keep alive packets. I was thinking of achieving this by setting tcp_keepstop lower than tcp_keepfreq. So my questions are:
--Is it even possible to set tcp_keepstop lower than tcp_keepfreq?
--If so, will it still send one round of keep-alive packets by default?
--Does anyone think this will make a difference?

Currently, the sockets will 'fill up' and there is a script in place to monitor the number of sockets and reboot the system when they reach a certain threshold.

Thanks
Eric Liszka
2 REPLIES 2
Craig Gilmore
Trusted Contributor

Re: Want to kill socket connections

Yes, it is possible to set the keepstop lower than keepfreq. However, per standard the keepalive algorithm will still send a keepalive packet when it first hits the keepstart interval.

It appears that your needs are not going to be met by the standard IP implementation, and you should probably look at coding some inactive timers into the application itself, rather than trying to adapt keepalive to your needs.
rick jones
Honored Contributor

Re: Want to kill socket connections

Craig is quite correct - the thing to do here is have an appliation level timeout and then close() the socket.

What did you mean by "the sockets fill-up?"
there is no rest for the wicked yet the virtuous have no pillows