fmgoncalves/p5-cassandra-simple — Issue #3: Connection fails if rpc_address is set to 0.0.0.0 
Author: neonknight
Created: 2012-02-01 10:08:35+00:00
State: open

describe_ring() seems to list the values of the cassandra config directive rpc_address. According to cassandra doc, this config directive can be set to 0.0.0.0. Therefore, if rpc_address is set to 0.0.0.0 and not the real IP of the node, then Cassandra::Simple tries to connect to the node 0.0.0.0 which of course will always fail with the error message:
```Runtime error: TSocket: Could not connect to 0.0.0.0:9160 (Connection refused) at /usr/local/share/perl/5.10.1/Cassandra/Pool/CassandraServer.pm line 51.```

The workaround on cassandra side is to explicitly set rpc_address to the real IP address of the node. Correct me if I'm wrong, but it would be much nicer if Cassandra::Simple could determine the ring description using the values of the listen_address directive, which must be set to the node's IP anyway.