iconara/cql-rb — pull request #18 by jabr (2013-04-28 05:13:06+00:00)
Title: Reconnection example (with "dumb" client)

diff --git a/lib/cql/io/io_reactor.rb b/lib/cql/io/io_reactor.rb
index a1f4c9d..fa584ba 100644
--- a/lib/cql/io/io_reactor.rb
+++ b/lib/cql/io/io_reactor.rb
@@ -82,6 +82,7 @@ module Cql
@lock.synchronize do
@connections.delete(connection)
end
+ add_connection(host, port)
end
f = connection.open
@lock.synchronize do