Replies: 3 comments 7 replies
-
This seems like a correct conclusion.
WDIO could implement a different proxy agent that might support keep alive.
I would say so, yes! |
Beta Was this translation helpful? Give feedback.
-
Let me see if I understand this correctly: If I install and configure another proxy agent that is got compatible this proxy agent will be used without anyone having to modify any code in WebdriverIO? |
Beta Was this translation helpful? Give feedback.
-
So - using hpagent instead of global-agent as proxy agent will make your WebdriverIO + Browserstack Sessions use keep-alive. This is good! The bad news is a side-effect that I didn't notice at first: Using hpagent instead of global-agent makes the @wdio/browserstack-service unable to get request through to api.browserstack.com and collector-observability.browserstack.com which heavily reduces the information sent to the browserstack dashboard. The error is As far as I can workout this is likely to be a problem in @wdio/browserstack-service but the only thing that I am sure of is that these requests works when global-agent is used as the proxy-agent. Should I file this as a bug even if hpagent isn't "officially" supported by WDIO? |
Beta Was this translation helpful? Give feedback.
-
After a couple of weeks of troubleshooting we have come to these conclusions:
There is an open issue to add keep-alive for global-agent but it has not changed status since 2019 and I want to discuss the options here first.
What do you think? Are my conclusions correct or did I miss something relevant?
Are there options to global-agent that could actually be used with the current version of WDIO with none or small modifciations to WDIO?
Is helping gajus/global-agent implementing keep-alive support the only way forward?
Beta Was this translation helpful? Give feedback.
All reactions