repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 736bacde90ab3abab2290ec164b54c022cafcc0d:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 736bacde90ab3abab2290ec164b54c022cafcc0d
Author: Alexander Barton 
Date:   Thu Oct 10 15:01:12 2002 +0000

    - Es wird nun laenger auf Resolver-Ergebnisse gewartet, der Login aber
      sofort fortgesetzt, so ein Ergebnis eintrifft.

diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index d694c5e9e2b22a903cf2e9bbe6bc525248309ab8..
index ..c5b935f2297fd9c1478a3548bf65e57e69083ad8 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -9,7 +9,7 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: conn.c,v 1.80 2002/10/09 17:07:22 alex Exp $
+ * $Id: conn.c,v 1.81 2002/10/10 15:01:12 alex Exp $
  *
  * connect.h: Verwaltung aller Netz-Verbindungen ("connections")
  */
@@ -548,6 +548,14 @@ Conn_SetPenalty( CONN_ID Idx, time_t Seconds )
 } /* Conn_SetPenalty */


+GLOBAL VOID
+Conn_ResetPenalty( CONN_ID Idx )
+{
+	assert( Idx >= 0 );
+	My_Connections[Idx].delaytime = 0;
+} /* Conn_ResetPenalty */
+
+
 LOCAL BOOLEAN
 Try_Write( CONN_ID Idx )
 {
@@ -751,7 +759,7 @@ New_Connection( INT Sock )
 	}

 	/* Penalty-Zeit setzen */
-	Conn_SetPenalty( idx, 1 );
+	Conn_SetPenalty( idx, 4 );
 } /* New_Connection */


@@ -1198,6 +1206,9 @@ Read_Resolver_Result( INT r_fd )
 		assert( My_Connections[i].our_server >= 0 );
 		strcpy( Conf_Server[My_Connections[i].our_server].ip, result );
 	}
+
+	/* Penalty-Zeit zurueck setzen */
+	Conn_ResetPenalty( i );
 } /* Read_Resolver_Result */


-----END OF PAGE-----