memcache/server.c
changeset 46 8a832c0e01ee
parent 43 e5b714190dee
child 48 1c67f512779b
equal deleted inserted replaced
45:10d514029c64 46:8a832c0e01ee
    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