param socket_keepalive to set keep-alive on socket
Set default keepalive setting to true