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

Comparing ircd-hybrid/src/client.c (file contents):
Revision 673 by michael, Fri Jun 9 13:30:21 2006 UTC vs.
Revision 674 by michael, Tue Jun 13 08:45:01 2006 UTC

# Line 1057 | Line 1057 | exit_client(struct Client *source_p, str
1057   static void
1058   close_connection(struct Client *client_p)
1059   {
1060  struct ConfItem *conf;
1061  struct AccessItem *aconf;
1062  struct ClassItem *aclass;
1063
1060    assert(NULL != client_p);
1061  
1062    if (IsClient(client_p))
# Line 1076 | Line 1072 | close_connection(struct Client *client_p
1072      ServerStats.is_sbs += client_p->localClient->send.bytes;
1073      ServerStats.is_sbr += client_p->localClient->recv.bytes;
1074      ServerStats.is_sti += CurrentTime - client_p->firsttime;
1079
1080    /* XXX Does this even make any sense at all anymore?
1081     * scheduling a 'quick' reconnect could cause a pile of
1082     * nick collides under TSora protocol... -db
1083     */
1084    /*
1085     * If the connection has been up for a long amount of time, schedule
1086     * a 'quick' reconnect, else reset the next-connect cycle.
1087     */
1088    if ((conf = find_exact_name_conf(SERVER_TYPE,
1089                                     client_p->name, client_p->username,
1090                                     client_p->host)))
1091    {
1092      /*
1093       * Reschedule a faster reconnect, if this was a automatically
1094       * connected configuration entry. (Note that if we have had
1095       * a rehash in between, the status has been changed to
1096       * CONF_ILLEGAL). But only do this if it was a "good" link.
1097       */
1098      aconf = &conf->conf.AccessItem;
1099      aclass = &((struct ConfItem *)aconf->class_ptr)->conf.ClassItem;
1100      aconf->hold = time(NULL);
1101      aconf->hold += (aconf->hold - client_p->since > HANGONGOODLINK) ?
1102        HANGONRETRYDELAY : ConFreq(aclass);
1103    }
1075    }
1076    else
1077      ++ServerStats.is_ni;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines