Added fresh_connect option to enable/disable keep-alive