diff freeDiameter/p_psm.c @ 198:5ea550c3f033

Fix handling of long network failures
author Sebastien Decugis <sdecugis@nict.go.jp>
date Tue, 09 Feb 2010 17:59:15 +0900
parents 89d39bcf9ef5
children 2465698b9f31
line wrap: on
line diff
--- a/freeDiameter/p_psm.c	Mon Feb 08 18:35:51 2010 +0900
+++ b/freeDiameter/p_psm.c	Tue Feb 09 17:59:15 2010 +0900
@@ -665,8 +665,11 @@
 				CHECK_FCT_DO( fd_p_cnx_init(peer), goto psm_end );
 				goto psm_loop;
 				
+			case STATE_SUSPECT:
+				/* Mark the connection problem */
+				peer->p_flags.pf_cnx_pb = 1;
+				
 			case STATE_CLOSING:
-			case STATE_SUSPECT:
 			case STATE_WAITCNXACK:
 			case STATE_WAITCEA:
 				/* Destroy the connection, restart the timer to a new connection attempt */
"Welcome to our mercurial repository"