neuyilan commented on pull request #2635:
URL: https://github.com/apache/iotdb/pull/2635#issuecomment-774576856


   > Generally, the connection pool is used to obtain connections from the 
connection pool. After the close connection is used, the close connection only 
puts the connection back to the connection pool. The connection pool maintains 
the lifecycle of the connection.
   
   Actually, it's not exactly right. Not all client life cycles are processed 
in the client pool. When getting a client for remote process use, there may be 
problems. For example, a client may fail to connect due to network delay or 
server downtime. At this time, we need to close the connection. When you put 
the client in the client pool, if you find that the connection is closed, you 
will not put it in the pool. The role of the client pool is to save some 
clients that have created connections. When you want to connect to a server, 
you don't need to create connections again, which saves the overhead of 
creating and closing connections frequently.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to