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

Increase Dev Server Timeout? #3210

Closed
iq-dot opened this issue Sep 28, 2017 · 3 comments
Closed

Increase Dev Server Timeout? #3210

iq-dot opened this issue Sep 28, 2017 · 3 comments

Comments

@iq-dot
Copy link

iq-dot commented Sep 28, 2017

Hi All,

I have an application that queries databases that on some instances can take more than 5 minutes. It seems the dev proxy server has a default timeout of around 2mins (I assume from express / nodejs socket default).

Is there an easy way to increase this timeout on create-react-app ?

Best,
Iqbal

@Timer
Copy link
Contributor

Timer commented Sep 28, 2017

Wow, that's a long HTTP request -- I'd suggest you make other changes in your application, such as returning immediately with a response acknowledging that it's queued, followed by repeated requests to check on its status.

Alternatively, a websocket might be better suited -- long running HTTP connections usually indicate a problem.

@iq-dot
Copy link
Author

iq-dot commented Sep 28, 2017

Yeah its an interface to analytical platform so some can be long (millions of records are being analysed). So some queries are quite big, perhaps I will look at websockets.

@Timer
Copy link
Contributor

Timer commented Sep 29, 2017

Good luck!

(also to fully answer your original question, you can't -- but I don't think exposing an option for this would help because you'd most likely run into issues when deploying in production anyway)

@Timer Timer closed this as completed Sep 29, 2017
@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants