about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2010-05-21 23:47:28 +0200
committerAlexander Barton <alex@barton.de>2010-06-29 22:55:27 +0200
commitd4632a727fbee65cb1585c6f6e9968d830f23a19 (patch)
treed92b597225a3f6be1a24cb9398a3564dc4ba11cd /src
parent60f5dd5b29e701b3ab601addd3cdefb508acc7d1 (diff)
downloadngircd-d4632a727fbee65cb1585c6f6e9968d830f23a19.tar.gz
ngircd-d4632a727fbee65cb1585c6f6e9968d830f23a19.zip
Don't set a penalty time when doing DNS lookups
The logic isn't as described in the source and intended by this code:
ngIRCd doesn't wait for the asynchronous resolver process until the set
penalty time is over, but until the forked process terminates or the
initial connection timeout (= PongTimeout) triggers.

So don't set the penalty time at all and remove the wrong comment.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index dff9336f..0d82d530 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -1382,11 +1382,6 @@ New_Connection(int Sock)
 		Resolve_Addr(&My_Connections[new_sock].proc_stat, &new_addr,
 			     identsock, cb_Read_Resolver_Result);
 
-	/* ngIRCd waits up to 4 seconds for the result of the asynchronous
-	 * DNS and IDENT resolver subprocess using the "penalty" mechanism.
-	 * If there are results earlier, the delay is aborted. */
-	Conn_SetPenalty(new_sock, 4);
-
 	Account_Connection();
 	return new_sock;
 } /* New_Connection */