https://github.com/warmcat/libwebsockets/issues/308
Signed-off-by: Andy Green <andy.green@linaro.org>
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