does it support go routine and connect pool
Can you please provide more details (or some code example) on the functionality that you think is missing? In theory:
- go routine - yes, should be not a problem
- connect pool - not clear what you mean
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?