Merge branch 'fwd-upstream-ranking' into 'master'

fix some inconsistencies in tcp connection error handling; forwarding - avoid attempts to communicate with timeouted upstream.

See merge request !716
30 jobs for session-close-fix
in 15 minutes and 7 seconds and was queued for 5 seconds