Increase default socket timeout, enable keepalive