ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/server.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/server.c (file contents):
Revision 6350 by michael, Tue Aug 11 17:53:44 2015 UTC vs.
Revision 6390 by michael, Sat Aug 22 18:12:04 2015 UTC

# Line 48 | Line 48
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 *);
# Line 242 | Line 240 | 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)
# Line 271 | Line 268 | try_connections(void *unused)
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
# Line 286 | Line 279 | try_connections(void *unused)
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)