Fixes https://emqx.atlassian.net/browse/EMQX-9656 See also https://github.com/emqx/ehttpc/pull/45 This fixes a race condition where the remote server would close the connection before or during requests, and, depending on timing, an `{error, normal}` response would be returned. In those cases, we should just retry the request without using up "retry credits".
174 B
174 B
Fixed a race condition in the HTTP driver that would result in an error rather than a retry of the request. Related fix in the driver: https://github.com/emqx/ehttpc/pull/45