changeset 4464:61aff09a7589

Increase DDE connection retries because waiting for XEmacs to start can take awhile.
author Vin Shelton <acs@xemacs.org>
date Thu, 15 May 2008 07:46:41 -0400
parents 5c651a4e8ed3
children 732b87cfabf2
files lib-src/ChangeLog lib-src/winclient.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/ChangeLog	Wed May 14 21:54:54 2008 -0700
+++ b/lib-src/ChangeLog	Thu May 15 07:46:41 2008 -0400
@@ -1,3 +1,8 @@
+2008-05-14  Vin Shelton  <acs@xemacs.org>
+
+	* winclient.c:  Create CONNECT_RETRIES and increase retry count
+	from 5 to 10.
+
 2008-05-13  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* make-docfile.c (scan_file):
--- a/lib-src/winclient.c	Wed May 14 21:54:54 2008 -0700
+++ b/lib-src/winclient.c	Thu May 15 07:46:41 2008 -0400
@@ -40,6 +40,7 @@
 /* -- Post-Include Defines -------------------------------------------------- */
 
 /* Timeouts & delays */
+#define CONNECT_RETRIES		10
 #define CONNECT_DELAY		500		/* ms */
 #define TRANSACTION_TIMEOUT	5000		/* ms */
 #define MAX_INPUT_IDLE_WAIT     INFINITE	/* ms */
@@ -206,7 +207,7 @@
       CloseHandle (pi.hProcess);
       
       /* Try to connect */
-      for (n = 0; n < 5; n++)
+      for (n = 0; n < CONNECT_RETRIES; n++)
 	{
 	  Sleep (CONNECT_DELAY);