}
catch (AerospikeException ae) {
if (ae.keepConnection()) {
// Put connection back in pool.
conn.updateLastUsed();
node.restoreHealth();
node.putConnection(conn);
}
else {
// Close socket to flush out possible garbage. Do not put back in pool.
conn.close();