changing retry mechanism if get 503 from HAPROXY and also add a while lo...

...op at _request_server method to recover when connection successful and retries until then