Open li-bit opened 4 years ago
After read the code, we can figure out:
manticore.Client
is not go routine safe, it's just a thin wrap on a
net.Conn
. We should build a pool of manticore.Client
objects if we want
access manticore server concurrently. If manticore server restarted, the
connection will lost, and we must make sure manticore.Client
reconnect afterwards.
manticore.Client.Ping()
will cause the connection disconnected, how to detect the connection is alive?
Can you please provide more details (or some code example) on the functionality that you think is missing? In theory: