-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(db) ensure postgres connector reentrancy
Because the connector currently stores its connection in an attribute, it is shared between all requests in a worker, which will throw cosocket errors. Instead, `:query()` is now reentrant by incoming requests (it instantiates and keepalive its own connections). The connector `:connect()` and `:setkeepalive()` methods are left untouched for now, but need further consideration given their limitation with regards to their lack of reentrancy at runtime. From #3423
- Loading branch information
1 parent
88539c0
commit 31d9ed7
Showing
1 changed file
with
67 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters