Skip to content
Snippets Groups Projects
Commit 0306fe7b authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Fixed server instance not being properly initialized.

refs #2136
parent d29ed705
No related branches found
No related tags found
No related merge requests found
......@@ -412,6 +412,7 @@ server_t *server_create()
ERR_ALLOC_FAILED;
return NULL;
}
memset(server, 0, sizeof(server_t));
server->state = ServerIdle;
init_list(&server->handlers);
......@@ -784,7 +785,6 @@ int server_conf_hook(const struct conf_t *conf, void *data)
}
if (server->rrl) {
if (rrl_rate(server->rrl) != conf->rrl) {
printf("server: new rrl rate=%d\n", conf->rrl);
rrl_setrate(server->rrl, conf->rrl);
} /* At this point, old buckets will converge to new rate. */
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment