Call _raise_connection_error in KafkaConnection.reinit() if socket connection fails
Initialized _dirty in KafkaConnection __init__() and set _sock to None in close()
Add some more debug logging to KafkaConnection
Improve KafkaConnection testing: mock socket.create_connection; add tests for __init__ and send
socket.sendall should always raise an exception on error; remove extra return val check in KafkaConnection.send()
Cleanup some connection tests in test/test_conn.py
Implementing more skipped connection tests (send and recv)
Move common connection testing code to setUp method
Implement a few more skipped tests in test/test_conn.py
Implement last of the skipped test_conn.py tests
Remove unused imports from test/test_conn.py
Remove self._dirty and check self._sock instead in kafka.conn
Remove duplicate error handling blocks by moving empty response check into try block in conn.recv
Shutdown socket before closing in kafka.conn
Improve docstrings in kafka.conn
Fix test_conn tests wrt _dirty / _sock
Add a mock to sock.recv() in the test_conn setUp method.  Returns 2 packet payloads, then '', then error
Merge pull request #196 from dpkp/reinit_connection_error

Improve KafkaConnection with more tests