rabbitmq / rabbitmq-auth-backend-http

HTTP-based authorisation and authentication for RabbitMQ
Other
199 stars 72 forks source link

Use HTTP/1.1 Retry on connection failures. #22

Closed hairyhum closed 8 years ago

hairyhum commented 8 years ago

Requests using HTTP/1.1 and keepalive can fail with socket_closed_remotely if keepalive connection is closed. Added retry to handle connection closing. Retry set to 3 to avoid infinite loop. Only HTTP/1.1 bug I have found is: http://erlang.org/pipermail/erlang-bugs/2015-March/004862.html And it can be avoided by using retries.