/[svn]/branches/newio/src/s_bsd.c
ViewVC logotype

Diff of /branches/newio/src/s_bsd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2407 by michael, Wed Jul 17 20:29:02 2013 UTC revision 2408 by michael, Thu Jul 18 19:57:58 2013 UTC
# Line 47  Line 47 
47  #include "s_user.h"  #include "s_user.h"
48  #include "msgq.h"  #include "msgq.h"
49  #include "ioengine.h"  #include "ioengine.h"
50    #include "dbuf.h"
51    
52    
53  dlink_list connection_list;  dlink_list connection_list;
# Line 651  read_packet(struct Client *client_p, int Line 652  read_packet(struct Client *client_p, int
652        return exit_client(client_p, client_p, "Excess Flood");        return exit_client(client_p, client_p, "Excess Flood");
653    
654      while (DBufLength(&client_p->localClient->recvQ) && !NoNewLine(client_p) &&      while (DBufLength(&client_p->localClient->recvQ) && !NoNewLine(client_p) &&
655             (IsTrusted(client_p) || cli_since(client_p) - CurrentTime < 10))             (IsTrusted(client_p) || client_p->localClient->since - CurrentTime < 10))
656      {      {
657        dolen = dbuf_getmsg(&client_p->localClient->recvQ,        dolen = dbuf_getmsg(&client_p->localClient->recvQ,
658                            client_p->localClient->buffer, IRCD_BUFSIZE);                            client_p->localClient->buffer, IRCD_BUFSIZE);
# Line 854  client_sock_callback(struct Event *ev) Line 855  client_sock_callback(struct Event *ev)
855    
856        /*FALLTHROUGH*/        /*FALLTHROUGH*/
857      case ET_EOF:  /* End of file on socket */      case ET_EOF:  /* End of file on socket */
858        SetFlag(client_p, FLAGS_DEADSOCKET);        AddFlag(client_p, FLAGS_DEADSOCKET);
859    
860        if ((IsServer(client_p) || IsHandshake(client_p)) && client_p->localClient->error == 0)        if ((IsServer(client_p) || IsHandshake(client_p)) && client_p->localClient->error == 0)
861        {        {
862          exit_client_msg(client_p, client_p, "Server %s closed the connection (%s)",          exit_client_msg(client_p, client_p, "Server %s closed the connection (%s)",
863                          client_p->name, client_p->servptr->->last_error_msg);                          client_p->name, client_p->servptr->last_error_msg);
864          return;          return;
865        }        }
866        else        else

Legend:
Removed from v.2407  
changed lines
  Added in v.2408

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28