-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Hello @szmarczak, First of all. I want to say "THANK YOU" - got helped me A LOT and it is fantastic. I really love it. got has a way better timeouts than axios (their timeout handling is broken - PR / Issue), and it has built-in retry support.
Anyway, I've configured H2 over HTTP proxy and just noticed some requests took super long time to fail, or stuck forever.
After some investigation, I noticed that proxy connection can be stuck (or stuck forever) in following cases:
- ClientRequest of
CONNECT
method never emitconnect
event - ClientRequest of
CONNECT
method emittedconnect
event, but session never created or took long time (~20sec)
this might be edge case because:
- Long RTT: Origin server is located in Seoul, South Korea and Proxy Peer is located in US
- Residential Proxy: It is a residential proxy, not a Datacenter Proxy. Some proxy peers has poor network quality.
- Time-limited, stateless environment: Application is running in AWS Lambda
So, It would be nice if we can handle these situations by supporting timeout to proxy connection.
There might be another way to setting timeouts (or accessing to connection), If so, please let me know!
szmarczak
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request