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

Time out for post graphql server #623

Closed
mamtalakhani opened this issue Nov 10, 2017 · 5 comments
Closed

Time out for post graphql server #623

mamtalakhani opened this issue Nov 10, 2017 · 5 comments

Comments

@mamtalakhani
Copy link

Can you plz let me know where to set the timeout for postgraphql server.

@benjie
Copy link
Member

benjie commented Nov 10, 2017

What timeout are you looking for?

@mamtalakhani
Copy link
Author

We have a query which runs for a few minutes in Postgres. When the same query is written in GraphiQL,the server responds with 504 Gateway timeout exactly after 1.5 min. We would like to change the 1.5 min timeout variable.

@benjie
Copy link
Member

benjie commented Nov 10, 2017

I'm not aware of this limit (that isn't to say it doesn't exist). The error "Gateway Timeout" implies that you have something between the PostGraphQL server and the client (aka a "Gateway") and that that is causing the connection to time out. On Heroku this period is 30 seconds.

@kronken
Copy link
Contributor

kronken commented Apr 19, 2018

The nodeJS http server has a default timeout of two minutes (reference). Which makes the project automatically terminate connections after two minutes. This can be modified by setting server.setTimeout(10 * 60 * 1000) at postgraphile/cli.ts#L424
I would suggest that the timeout could be modified in the configuration.

@benjie
Copy link
Member

benjie commented Aug 15, 2018

This was added by the above commit 🙏

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

No branches or pull requests

3 participants