Skip to content

Commit a852aa0

Browse files
author
Elizabeth Chan
committed
Merge branch '4.5.0' of https://github.com/adaptivecomputing/torque into 4.5.0
2 parents b0cdac8 + 08e458d commit a852aa0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/Libifl/tm.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,8 @@ tm_register(tm_whattodo_t *what, tm_event_t *event)
13871387
return TM_ENOTIMPLEMENTED;
13881388
}
13891389

1390-
#define FOREVER 2592000
1390+
#define FOREVER 2592000
1391+
#define INITIALPOLLTIMEOUT 5
13911392

13921393
/*
13931394
** tm_poll - poll to see if an event has been completed.
@@ -1478,7 +1479,7 @@ int tm_poll(
14781479
** Setup tcp dis routines with a wait value appropriate for
14791480
** the value of wait the user set.
14801481
*/
1481-
pbs_tcp_timeout = wait ? FOREVER : 1;
1482+
pbs_tcp_timeout = wait ? INITIALPOLLTIMEOUT : 1;
14821483

14831484
prot = disrsi(static_chan, &ret);
14841485

0 commit comments

Comments
 (0)