cl_timeout

cl_timeout <value>

After this many seconds without receiving a packet from the server, the client will disconnect itself

Note:

The value is saved and will be restored on next startup.