equal
deleted
inserted
replaced
15 ERROR("calloc"); |
15 ERROR("calloc"); |
16 |
16 |
17 // store the vars |
17 // store the vars |
18 server->endpoint = endpoint; |
18 server->endpoint = endpoint; |
19 server->max_connections = max_connections; |
19 server->max_connections = max_connections; |
|
20 |
|
21 // init lists |
|
22 LIST_INIT(&server->conn_list); |
|
23 TAILQ_INIT(&server->req_queue); |
20 |
24 |
21 // grow connpool so as to have a connection ready |
25 // grow connpool so as to have a connection ready |
22 if (memcache_server_grow_connpool(server)) |
26 if (memcache_server_grow_connpool(server)) |
23 ERROR("error opening initial connection"); |
27 ERROR("error opening initial connection"); |
24 |
28 |