Introduce KeepaliveTime and KeepaliveInterval options to specify time or
interval for keepalive.