-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible to support alternative agents? #112
Comments
Feel free to PR this, I guess we just didn't think about such use case. |
Hey, I'm looking into this issue right now, but can't seem to figure out how to test this... it also shouldn't be overriding your agent unless you also provided a proxyUrl in your got options. Do you have a reproduction sample we could use? 🙏 |
I also have encountered this problem, if I send multiple requests to the same host, it should use the same socket instead of establishing connection to the proxy server every time.(hpagent doesn't seem to support http2). |
I took a look at this again and I think there are two separate issues that I didn't articulate well in my original report.
Probably worth splitting this single issue into two separate issues depending on how you'd like to proceed. |
@tonybruess I set the "http2: false" then I could use the hpagent. |
I'd like to use hpagent because it supports reusable sockets.
I tried passing in
agent: { https: httpsAgent }
but it was overridden / didn't work.I'm wondering if this is easily feasible or if there's some limitation I'm overlooking. If there's no gotchas I'm happy to make a PR.
The text was updated successfully, but these errors were encountered: