Add an option to enable TCP keepalive.