Closed CMogilko closed 4 years ago
Just as a clarifying question on this,
if there is an error processing response, we close the channel (https://github.com/rethinkdb/rethinkdb-go/pull/483/files#diff-8f8a79f3f89c69a28dd878de98384cf9R289), On the next pool query is this channel marked as bad already? It seems like it is only being bad on the next time the channel tries to query and sees that it is closed.
Would this require client code to then query twice before that connection is marked as bad and it gets a new connection?
@cquon Connection marked bad if any net.Conn Read() or Write() or protocol encoding returns error. It will be closed a bit later.
Connection
net.Conn
Read()
Write()
Just as a clarifying question on this,
if there is an error processing response, we close the channel (https://github.com/rethinkdb/rethinkdb-go/pull/483/files#diff-8f8a79f3f89c69a28dd878de98384cf9R289), On the next pool query is this channel marked as bad already? It seems like it is only being bad on the next time the channel tries to query and sees that it is closed.
Would this require client code to then query twice before that connection is marked as bad and it gets a new connection?