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 && |
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 |
|
|