The invention provides a
client multi-protocol
connection pool method. The
client multi-protocol
connection pool method comprises the following steps: defining a uniform connection interface; connection of specific protocols is realized; creating a plug-in manager; creating a
connection pool: defining a ConnectionPool structural body for managing
multiplexing of the connection, creating a connection
pool instance by implementing a NewConnectionPool function, obtaining the connection from the
pool by implementing a Get method, and putting the connection back to the
pool by implementing a Put method; and using the connection pool: creating a plug-in manager instance, registering a protocol connection factory, creating a connection pool instance, acquiring connection from the pool, performing
data transmission by using the connection, and putting the connection back to the pool after the
data transmission is completed. The
system has remarkable advantages in the aspects of flexibility, performance,
usability, stability and the like, the expandability and the adaptability of the
system are improved, the development cost and the maintenance difficulty are reduced, and more efficient, stable and
secure communication services are provided for users.