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

Comparing ircd-hybrid-7.2/src/client.c (file contents):
Revision 617 by michael, Mon May 22 07:21:17 2006 UTC vs.
Revision 650 by michael, Thu Jun 8 07:00:17 2006 UTC

# Line 317 | Line 317 | check_pings_list(dlink_list *list)
317              ilog(L_NOTICE, "No response from %s, closing link",
318                   get_client_name(client_p, HIDE_IP));
319            }
320 +
321            ircsprintf(scratch, "Ping timeout: %d seconds",
322                       (int)(CurrentTime - client_p->lasttime));
322
323            exit_client(client_p, &me, scratch);
324          }
325          else if (!IsPingWarning(client_p) && pingwarn > 0 &&
# Line 363 | Line 363 | check_unknowns_list(void)
363      if (client_p->localClient->reject_delay > 0)
364      {
365        if (client_p->localClient->reject_delay <= CurrentTime)
366 <        exit_client(client_p, &me, "Rejected");
366 >        exit_client(client_p, &me, "Rejected");
367        continue;
368      }
369  
370 <    /* Check UNKNOWN connections - if they have been in this state
370 >    /*
371 >     * Check UNKNOWN connections - if they have been in this state
372       * for > 30s, close them.
373       */
374 <    if (client_p->firsttime ? ((CurrentTime - client_p->firsttime) > 30) : 0)
375 <      exit_client(client_p, &me, "Connection timed out");
374 >    if (IsAuthFinished(client_p) && (CurrentTime - client_p->firsttime) > 30)
375 >      exit_client(client_p, &me, "Registration timed out");
376    }
377   }
378  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines