comparison lib-src/winclient.c @ 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 49316578f12d
children 422b4b4fb2a6
comparison
equal deleted inserted replaced
4463:5c651a4e8ed3 4464:61aff09a7589
38 static char * getNextArg (const char **ptr, unsigned *len); 38 static char * getNextArg (const char **ptr, unsigned *len);
39 39
40 /* -- Post-Include Defines -------------------------------------------------- */ 40 /* -- Post-Include Defines -------------------------------------------------- */
41 41
42 /* Timeouts & delays */ 42 /* Timeouts & delays */
43 #define CONNECT_RETRIES 10
43 #define CONNECT_DELAY 500 /* ms */ 44 #define CONNECT_DELAY 500 /* ms */
44 #define TRANSACTION_TIMEOUT 5000 /* ms */ 45 #define TRANSACTION_TIMEOUT 5000 /* ms */
45 #define MAX_INPUT_IDLE_WAIT INFINITE /* ms */ 46 #define MAX_INPUT_IDLE_WAIT INFINITE /* ms */
46 47
47 /* DDE Strings */ 48 /* DDE Strings */
204 /* Close the handles */ 205 /* Close the handles */
205 CloseHandle (pi.hThread); 206 CloseHandle (pi.hThread);
206 CloseHandle (pi.hProcess); 207 CloseHandle (pi.hProcess);
207 208
208 /* Try to connect */ 209 /* Try to connect */
209 for (n = 0; n < 5; n++) 210 for (n = 0; n < CONNECT_RETRIES; n++)
210 { 211 {
211 Sleep (CONNECT_DELAY); 212 Sleep (CONNECT_DELAY);
212 213
213 hConv = DdeConnect (idInst, hszService, hszTopic, NULL); 214 hConv = DdeConnect (idInst, hszService, hszTopic, NULL);
214 215