You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function connect will create a new mysql connection or select a free connection from pool! If there are too many connection using, I don't want it to return immediately until another connection is released! How to do it?
The text was updated successfully, but these errors were encountered:
The first step is to return an error immediately when exceeding the pool size limit so that you can use ngx.sleep to poll connect() yourself. This part is already there. The second step is to wait via an internal queue in connect() itself, which won't introduce extra waiting latency as with ngx.sleep and is easier to use.
Because it works on the (lower) cosocket level, every higher level Lua library like lua-resty-mysql and lua-resty-redis will enjoy this feature out of the box.
The function connect will create a new mysql connection or select a free connection from pool! If there are too many connection using, I don't want it to return immediately until another connection is released! How to do it?
The text was updated successfully, but these errors were encountered: