Added checks around socket calls to make sure correct length data received.
Added checks around socket calls to make sure correct length data received.

bmess/riak-python-client,GabrielNicolasAvellaneda/riak-python-client,basho/riak-python-client,basho/riak-python-client,GabrielNicolasAvellaneda/riak-python-client,basho/riak-python-client,bmess/riak-python-client