mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59: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) {
|
||||
const agent = new ProxyAgent(proxyAddress, {
|
||||
keepAlive: true,
|
||||
keepAliveMsecs: 10 * 1000, // 10s
|
||||
})
|
||||
getAgent = () => agent
|
||||
} else if (localAddresses) {
|
||||
|
|
Loading…
Add table
Reference in a new issue