fixes bug 916886 - retry on ConnectionError on middleware, r=rhelmer