mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
request: with $HTTP(S)_PROXY, keep connections alive for 10s
This commit is contained in:
parent
5ce0129c36
commit
793cc9eee5
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ let getAgent = () => plainAgent
|
||||||
if (proxyAddress) {
|
if (proxyAddress) {
|
||||||
const agent = new ProxyAgent(proxyAddress, {
|
const agent = new ProxyAgent(proxyAddress, {
|
||||||
keepAlive: true,
|
keepAlive: true,
|
||||||
|
keepAliveMsecs: 10 * 1000, // 10s
|
||||||
})
|
})
|
||||||
getAgent = () => agent
|
getAgent = () => agent
|
||||||
} else if (localAddresses) {
|
} else if (localAddresses) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue