public function recycle($conn)
{
if (array_search($conn, $this->pool, true) === false) {
$conn->sleep();
$conn->timer = swoole_timer_after($this->client->poolTimeout, function () use($conn) {
swoole_timer_clear($conn->timer);
if ($conn->isConnected()) {
$conn->close();
}
});
$this->pool[] = $conn;
}
}