Commit 9ed9c82
committed
replace agent: false by internal agent
agent: false option had been set in order not to use the globalAgent
which may be set to a proxy agent pointing to the currently running
proxy.
But it also disable request pooling:
https://nodejs.org/api/http.html#http_http_request_options_callback
This commit fix this by setting agent to an internal agent (tweakable
through options httpAgent and httpsAgent)1 parent ac4570d commit 9ed9c82
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
470 | 472 | | |
471 | 473 | | |
472 | 474 | | |
473 | | - | |
| 475 | + | |
474 | 476 | | |
475 | 477 | | |
476 | 478 | | |
| |||
577 | 579 | | |
578 | 580 | | |
579 | 581 | | |
580 | | - | |
| 582 | + | |
581 | 583 | | |
582 | 584 | | |
583 | 585 | | |
| |||
0 commit comments