Two problems found at NCI - we called a function that used the full pbs timeout in a retry loop; instead the function that is retried now waits for timeout / number of retries so that the moms can't get jammed for hours. Also, make sure that DIS_reply_read() isn't called infinitely, even on retry-able errors. Add a max and make sure errno is cleared before calling.
Merge branch '4.2.2' of https://github.com/adaptivecomputing/torque into 4.2.2
TRQ-1660. nppn wasn't being passed to alps reservations because a parameter was being mixed up in the alps request. mppwidth and use_nppn were getting switched, so things weren't working.
Added a check to contact MOM nodes if they have not contacted the server
in a timely manner. The new function check_node connects to the
absent mom on the mom port 15002. If the connection succeeds we
do not mark the node down. TRQ-1761
TRQ-1738. Fix an error in counting job states for queues. Previously, the completed jobs got their own field, a duplicate of the array of all job states. Remove the extra field and just use the array, which is more robustly developed.
Merge branch '4.2.2' of https://github.com/adaptivecomputing/torque into 4.2.2
Merge pull request #101 from adaptivecomputing/4.2.2

4.2.2