Closed
Description
Given the following code:
const pg = require('pg');
const client = new pg.Client({ host: 'bogushost' });
try {
await client.connect();
} catch (err) {
// pass
}
await client.end();
The end()
call will hang indefinitely. I've seen this happen with at least ENOTFOUND
and ECONNREFUSED
errors.
Metadata
Metadata
Assignees
Labels
No labels