basho/riak-go-client

Connection timeouts can cause incorrect message code error [JIRA: CLIENTS-766]

Closed this issue · 0 comments

Related to #47, customer issue 13087

If a connection experiences a read timeout it is considered a temporary error, and the connection can be re-used. However, if Riak sends data on that connection subsequent reads from it will have data from the previous timeout, not the current operation.

The best course of action at this point is to close connections on all connection errors, even those that can be considered temporary.