Issue #125: fix for premature TCP session closures on long-lived connections