Add test for retrying requests after a socket timeout