Skip to content
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

Connection Timeout #4835

Open
internpoon opened this issue Jul 8, 2022 · 3 comments
Open

Connection Timeout #4835

internpoon opened this issue Jul 8, 2022 · 3 comments

Comments

@internpoon
Copy link

Is your feature request related to a problem? Please describe.

Yes. Currently I am using Axios With Proxy to perform some API request. However, some proxy might be slow or when the response size is too large, Axios will not timeout the request but it will keep waiting and waiting. The timeout option provided by Axios is response timeout, it would be great to have another option like Connection Timeout

Describe the solution you'd like

A "Connection Timeout & Retry" would be great.

Describe alternatives you've considered

Tried other HTTP client but it wasn't as good as axios in terms of speed. However, the only drawback is the connection timeout :(

Additional context

None.

@SuperKirik
Copy link

@internpoon maybe this will help...
#1739 (comment)

@yunusyuksel
Copy link

@internpoon maybe this will help... #1739 (comment)

The solution in that comment depends on the node library. Is there any solution for react-native, since react-native does not have any node dependency, that solution does not work

@leite08
Copy link

leite08 commented May 22, 2023

I agree we need a connection timeout to axios. This provides greater control on connections.

Our use case is we have a Lambda making an HTTP request and we need to have diff timeouts for connection and response.

I tried the suggestion on #1739 (comment) but couldn't make it work (Axios 1.4.0 on Node 18.14.2). But even with that suggestion, that's work around IMO, since one would expect that sort of control on a HTTP library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants