Skip to content
Snippets Groups Projects
Commit f7e2a85e authored by Andy Green's avatar Andy Green
Browse files

complain if zero ka_interval used with positive ka_time

parent f94dd2ea
No related branches found
No related tags found
No related merge requests found
......@@ -126,6 +126,11 @@ libwebsocket_create_context(struct lws_context_creation_info *info)
context->ka_interval = info->ka_interval;
context->ka_probes = info->ka_probes;
if (!info->ka_interval && info->ka_time > 0) {
lwsl_err("info->ka_interval can't be 0 if ka_time used\n");
return NULL;
}
#ifdef LWS_USE_LIBEV
/* (Issue #264) In order to *avoid breaking backwards compatibility*, we
* enable libev mediated SIGINT handling with a default handler of
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment