-
When the pool is full, new connections are still created in newConn function. why? |
Beta Was this translation helpful? Give feedback.
Answered by
monkey92t
Jul 1, 2021
Replies: 1 comment 1 reply
-
You can see here Under normal circumstances, it needs to enter a queue first (length is poolsize). In special cases (such as PubSub), it may create a connection that is not in the connection pool (pooled=false) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
codergma
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can see here
https://github.com/go-redis/redis/blob/dd4b7eb3b41c39c4f74ca016f09c55770df449c4/internal/pool/pool.go#L270-L304
Under normal circumstances, it needs to enter a queue first (length is poolsize). In special cases (such as PubSub), it may create a connection that is not in the connection pool (pooled=false)