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

Comparing:
ircd-hybrid/src/s_bsd.c (file contents), Revision 1155 by michael, Tue Aug 9 20:27:45 2011 UTC vs.
ircd-hybrid-8/src/s_bsd.c (file contents), Revision 1247 by michael, Sat Oct 1 07:54:24 2011 UTC

# Line 30 | Line 30
30   #include "fdlist.h"
31   #include "s_bsd.h"
32   #include "client.h"
33 #include "common.h"
33   #include "dbuf.h"
34   #include "event.h"
35   #include "irc_string.h"
# Line 131 | Line 130 | report_error(int level, const char* text
130    who = (who) ? who : "";
131  
132    sendto_realops_flags(UMODE_DEBUG, level, text, who, strerror(error));
133 <  log_oper_action(LOG_IOERR_TYPE, NULL, "%s %s %s\n", who, text, strerror(error));
135 <  ilog(L_ERROR, text, who, strerror(error));
133 >  ilog(LOG_TYPE_IRCD, text, who, strerror(error));
134   }
135  
136   /*
# Line 200 | Line 198 | close_connection(struct Client *client_p
198      ++ServerStats.is_cl;
199      ServerStats.is_cbs += client_p->localClient->send.bytes;
200      ServerStats.is_cbr += client_p->localClient->recv.bytes;
201 <    ServerStats.is_cti += CurrentTime - client_p->firsttime;
201 >    ServerStats.is_cti += CurrentTime - client_p->localClient->firsttime;
202    }
203    else if (IsServer(client_p))
204    {
205      ++ServerStats.is_sv;
206      ServerStats.is_sbs += client_p->localClient->send.bytes;
207      ServerStats.is_sbr += client_p->localClient->recv.bytes;
208 <    ServerStats.is_sti += CurrentTime - client_p->firsttime;
208 >    ServerStats.is_sti += CurrentTime - client_p->localClient->firsttime;
209  
210      /* XXX Does this even make any sense at all anymore?
211       * scheduling a 'quick' reconnect could cause a pile of
# Line 229 | Line 227 | close_connection(struct Client *client_p
227        aconf  = map_to_conf(conf);
228        aclass = map_to_conf(aconf->class_ptr);
229        aconf->hold = time(NULL);
230 <      aconf->hold += (aconf->hold - client_p->since > HANGONGOODLINK) ?
230 >      aconf->hold += (aconf->hold - client_p->localClient->since > HANGONGOODLINK) ?
231          HANGONRETRYDELAY : ConFreq(aclass);
232      }
233    }
# Line 339 | Line 337 | add_connection(struct Listener *listener
337    {
338      if ((new_client->localClient->fd.ssl = SSL_new(ServerInfo.server_ctx)) == NULL)
339      {
340 <      ilog(L_CRIT, "SSL_new() ERROR! -- %s",
340 >      ilog(LOG_TYPE_IRCD, "SSL_new() ERROR! -- %s",
341             ERR_error_string(ERR_get_error(), NULL));
342  
343        SetDead(new_client);

Diff Legend

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