Add a sleep with back-off to retries

The current implementation retries on socket error
without a sleep, and on auth error with a fixed
interval sleep. Replacing all with an exp backoff.
Default sleep time set to 1.5, default backoff 1.01.

Fixes bug #1180213
Change-Id: I764f2aa4f2c0f8e04718d69b842a574db7aca936
1 file changed