Commit 21.5 - Increase DDE connection retries

Vin Shelton acs at xemacs.org
Thu May 15 07:56:17 EDT 2008


I've been carrying this for awhile and committing this enabled me to
check out my shiny new alioth ssh key.

The patch increases the number of DDE connection retries because
starting up XEmacs via DDE can take awhile.

  - Vin

diff -r 5c651a4e8ed3 lib-src/ChangeLog
--- a/lib-src/ChangeLog Wed May 14 21:54:54 2008 -0700
+++ b/lib-src/ChangeLog Thu May 15 07:45:08 2008 -0400
@@ -1,3 +1,8 @@
+2008-05-14  Vin Shelton  <acs at xemacs.org>
+
+       * winclient.c:  Create CONNECT_RETRIES and increase retry count
+       from 5 to 10.
+
 2008-05-13  Aidan Kehoe  <kehoea at parhasard.net>

        * make-docfile.c (scan_file):
diff -r 5c651a4e8ed3 lib-src/winclient.c
--- a/lib-src/winclient.c       Wed May 14 21:54:54 2008 -0700
+++ b/lib-src/winclient.c       Thu May 15 07:45:08 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);



More information about the XEmacs-Patches mailing list