… | |
… | |
1368 | connection::connection (struct vpn *vpn, conf_node *conf) |
1368 | connection::connection (struct vpn *vpn, conf_node *conf) |
1369 | : vpn(vpn), conf(conf), |
1369 | : vpn(vpn), conf(conf), |
1370 | #if ENABLE_DNS |
1370 | #if ENABLE_DNS |
1371 | dns (0), |
1371 | dns (0), |
1372 | #endif |
1372 | #endif |
1373 | data_queue(conf->max_ttl, conf->max_queue), |
1373 | data_queue(conf->max_ttl, conf->max_queue + 1), |
1374 | vpn_queue(conf->max_ttl, conf->max_queue) |
1374 | vpn_queue(conf->max_ttl, conf->max_queue + 1) |
1375 | { |
1375 | { |
1376 | rekey .set<connection, &connection::rekey_cb > (this); |
1376 | rekey .set<connection, &connection::rekey_cb > (this); |
1377 | keepalive .set<connection, &connection::keepalive_cb > (this); |
1377 | keepalive .set<connection, &connection::keepalive_cb > (this); |
1378 | establish_connection.set<connection, &connection::establish_connection_cb> (this); |
1378 | establish_connection.set<connection, &connection::establish_connection_cb> (this); |
1379 | |
1379 | |