Cleaned up server configuration processing

Moved the creation of new servers into a separate function and cleaned up
the configuration processing.
This commit is contained in:
Markus Makela
2016-01-17 07:07:45 +02:00
parent c6dfcb66f5
commit 0aaba891a3
2 changed files with 196 additions and 172 deletions

View File

@ -91,6 +91,8 @@ server_alloc(char *servname, char *protocol, unsigned short port)
spinlock_init(&server->lock);
server->persistent = NULL;
server->persistmax = 0;
server->persistmaxtime = 0;
server->persistpoolmax = 0;
spinlock_init(&server->persistlock);
spinlock_acquire(&server_spin);