For HP-UX

To display the current timeout period enter:

The tcp_keepalive_interval parameter specifies the length of time (measured in seconds) to keep an idle connection active before the system checks to see if the connection died.

To change the timeout period, use the nettune -s or ndd -set command.