Gitlab::HttpIO#get_chunk should attempt retry on 5xx

Summary

We are facing issues on the network path from webservice to S3. When a lot of load is added on */projects/25302/jobs/*/trace* endpoint we start seeing 5xx errors with OpenSSL::SSL::SSLError or Gitlab::HttpIO::FailedToGetChunkError

Ideally the Gitlab::HttpIO#get_chunk should simply retry on such errors rather than surfacing them to users.

Impact

Recommendation

Verification

Edited by 🤖 GitLab Bot 🤖