Timeout release problem of swoole Cooperative redis connection Pool

use the redis, of the swoole protocol and then implement the connection pool by yourself (just a yii2-swoole written by a big god), which is stored in SplQueue, but I found that after the connection is inside, when it is idle for a long time, these connections are not broken, and the number of connections in redis has not been reduced. I want to know how to set parameters to make it automatically disconnect

.
Feb.07,2022

write your own timing to traverse the connection, and time out to release

Menu