Attempt a retry on with_secondary if there is a replica set reconfiguration.
Inspect auth failures to see if we should actually just retry.
Adds regression test for pull.
Add 11002 code.
Allow Session pool_timeout option

Fixes mongoid/mongoid#3790.
Fix reconfiguration exception thrown so retry works.
Merge pull request #317 from herimedia/allow-pool_timeout-option

Allow Session pool_timeout option
Add spaces
Merge branch 'jonhyman-feature/secondary-repl-set-master'

[#293]
Merge pull request #297 from jonhyman/feature/auth-reconfigure-2x

Inspect auth failures to see if we should actually just retry.
Don't try to disconnect if address never resolved to begin with

Call to disconnect triggers call to pool, which uses address.resolved
as a hash key. This in turn causes pollution of the connection pool.
Don't append nodes to seeds until DNS resolves

Test for equality of Node (==,#eql?) depends on node.address.resolved.
Therefore avoid such tests (such as .include?() ) until address is
resolved. This fixes unbounded growth (read: memory leak) of the seeds
array in unstable network environments.
Prevent ensure_connected from returning half-setup connection on reentry
Test for a connection should include non-alive socket
Ensure mongodb credentials are always sent upon (re)connection

If existing socket is reset, perhaps due to mongod failure,
credentials hash isn't reset. This causes them to not be sent upon
reconnection. Changed to reset at connect() instead of relying on a
disconnect() that may or may not happen.

Also cache last set of credentials so they can be reused when connection
loss is detected by with_connection().
Merge pull request #324 from zarqman/fix-auth-errors

Fix 16550 "not authorized", TypeError, and others
Add changelog missing entries
Use svg badges
Bump version to 2.0.1
Dont include peers if node already in the list

Node was leaking was duplicating nodes on the peers list.