[fix] fix for differentiating socket hang up vs local timeouts

The usual code has seemed to changed, this might be a result of request version being upgraded.