Skip to content

Commit

Permalink
fix(pool) honour host.options.timeout in the browser
Browse files Browse the repository at this point in the history
fixes #340
  • Loading branch information
DmitryKozhurkin authored and bencevans committed May 22, 2019
1 parent 49c20d2 commit 0b9d2cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pool.ts
Expand Up @@ -411,7 +411,7 @@ export class Pool {
// request options, wrapped in a conditional for even worse polyfills. See:
// https://github.com/node-influx/node-influx/issues/221
if (typeof req.setTimeout === 'function') {
req.setTimeout(this._timeout); // Tslint:disable-line
req.setTimeout(host.options.timeout || this._timeout); // Tslint:disable-line
}

// Write out the body:
Expand Down

0 comments on commit 0b9d2cf

Please sign in to comment.