48 |
|
#include "channel.h" |
49 |
|
#include "parse.h" |
50 |
|
|
51 |
– |
enum { MIN_CONN_FREQ = 300 }; |
52 |
– |
|
51 |
|
dlink_list flatten_links; |
52 |
|
static dlink_list server_capabilities_list; |
53 |
|
static void serv_connect_callback(fde_t *, int, void *); |
240 |
|
try_connections(void *unused) |
241 |
|
{ |
242 |
|
dlink_node *node = NULL; |
245 |
– |
int confrq = 0; |
243 |
|
|
244 |
|
/* TODO: change this to set active flag to 0 when added to event! --Habeeb */ |
245 |
|
if (GlobalSetOptions.autoconn == 0) |
268 |
|
|
269 |
|
assert(conf->class); |
270 |
|
|
271 |
< |
confrq = conf->class->con_freq; |
275 |
< |
if (confrq < MIN_CONN_FREQ) |
276 |
< |
confrq = MIN_CONN_FREQ; |
277 |
< |
|
278 |
< |
conf->until = CurrentTime + confrq; |
271 |
> |
conf->until = CurrentTime + conf->class->con_freq; |
272 |
|
|
273 |
|
/* |
274 |
|
* Found a CONNECT config with port specified, scan clients |
279 |
|
|
280 |
|
if (conf->class->ref_count < conf->class->max_total) |
281 |
|
{ |
282 |
< |
/* Go to the end of the list, if not already last */ |
282 |
> |
/* Move this entry to the end of the list, if not already last */ |
283 |
|
if (node->next) |
284 |
|
{ |
285 |
|
dlinkDelete(node, &server_items); |