Adjust the Client Connection Timeout Period

How to Adjust the Client Connection Timeout Period
SAP ASE uses the KEEPALIVE option of the TCP/IP protocol to detect inactive clients.

When a connection to a client is inactive for a period of time (the timeout period), the operating system sends KEEPALIVE packets at regular intervals. If it does not receive a response from the client machine for any of these packets, the operating system notifies SAP ASE that the client is no longer responding. SAP ASE then terminates the client’s connection.

The KEEPALIVE default timeout period is 2 hours (7,200,000 ms). To display the current time value, use the appropriate command for your platform.

For Sun Solaris
To display the timeout value, enter:

/usr/sbin/ndd -get /dev/tcp tcp_keepalive_interval To reduce the timeout period to 15 minutes (900,000 ms.), enter:

/usr/sbin/ndd -set /dev/tcp tcp_keepalive_interval 900000

For Linux
To display the timeout value, enter:

/sbin/sysctl -e net.ipv4.tcp_keepalive_time To reduce the timeout period to 15 minutes (900 seconds,) enter:

/sbin/sysctl -w net.ipv4tcp_keepalive_time=900

Ref : Sybase Infocenter