avoid race condition on connections with larger round-trip-times. Submitted by: John Capo & Peter Wemm