[PATCH 04 of 31] Upstream: fix request finalization if client timed out