Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve reconnects #8

Merged
merged 8 commits into from May 23, 2012
Merged

Improve reconnects #8

merged 8 commits into from May 23, 2012

Commits on May 8, 2012

  1. remove unused import

    Allan Beaufour committed May 8, 2012
    Copy the full SHA
    28f0e80 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2012

  1. add debugging messages and a couple of todos

    Allan Beaufour committed May 22, 2012
    Copy the full SHA
    a931b7d View commit details
    Browse the repository at this point in the history
  2. on connection error in .recv_loop(), don't try to kill own greenlet on

    .reconnect(). Part of making reconnect working.
    Allan Beaufour committed May 22, 2012
    Copy the full SHA
    1af7f5d View commit details
    Browse the repository at this point in the history
  3. shuffle the list of endpoint addresses, so all clients don't connect

    to the same node all the time.
    Allan Beaufour committed May 22, 2012
    Copy the full SHA
    585db05 View commit details
    Browse the repository at this point in the history
  4. make .reconnect() remember last host it tried to connect to, and try

    the next one in the list.
    Allan Beaufour committed May 22, 2012
    Copy the full SHA
    0021dbd View commit details
    Browse the repository at this point in the history
  5. make it possible to specify the connection timeout

    Allan Beaufour committed May 22, 2012
    Copy the full SHA
    6c6ad90 View commit details
    Browse the repository at this point in the history
  6. Use exponential backoff for the retry times.

    Allan Beaufour committed May 22, 2012
    Copy the full SHA
    78afa32 View commit details
    Browse the repository at this point in the history
  7. remove the unused CONNECT_TIMEOUT variable

    Allan Beaufour committed May 22, 2012
    Copy the full SHA
    7fbf7a3 View commit details
    Browse the repository at this point in the history