racker/node-cassandra-client — pull request #52 by Kami (2012-12-09 20:02:58+00:00)
Title: Fix error on drain or node restart

Connection `taken` attribute was set to soon and if the `connect` called failed this could cause the same bad connection to be re-used multiple times.

I'm also working on improved tests for PooledConnection stuff. I will update the test runner to spawn 2 node cluster and this will make testing some of the pooled connection stuff easier.