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
feat(outbound-pg): Reuse connection during request lifecycle
Also, pg_backend_pid endpoint into outbound-pg example.
Before the fix:
$ curl -i localhost:3000/pg_backend_pid
HTTP/1.1 500 Internal Server Error
content-length: 0
date: Tue, 27 Sep 2022 14:03:50 GMT
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
left: `592913`,
right: `592914`', src/lib.rs:112:5
After the fix:
$ curl -i localhost:3000/pg_backend_pid
HTTP/1.1 200 OK
content-length: 23
date: Tue, 27 Sep 2022 14:07:14 GMT
pg_backend_pid: 595194
Ideally, this fix has to be covered by an integration test rather than
manual testing through examples, but the testing environment has to be
set up first.
Refs: #667.
Signed-off-by: Konstantin Shabanov <mail@etehtsea.me>
0 commit comments