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

feat(server): add server timeout configuration #623 #741

Merged
merged 5 commits into from
Jul 20, 2018

Conversation

kronken
Copy link
Contributor

@kronken kronken commented Apr 23, 2018

I added the ability to set timeout for socket connections.

@@ -422,6 +424,8 @@ if (noServer) {
const rawMiddleware = postgraphile(pgConfig, schemas, postgraphileOptions)
const middleware = pluginHook('cli:server:middleware', rawMiddleware, { options: postgraphileOptions })
const server = createServer(middleware)
server.timeout = serverTimeout
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not super comfortable using a property access to timeout when there's a setter method setTimeout present; however I'm struggling to tell from the docs if they do the same thing or not:

screenshot 2018-05-03 17 33 43

Can you point to someone of authority stating that these are either equivalent, or that they're different and why you'd use one over the other?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @kronken, any idea regarding this? Are they different?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benjie benjie merged commit 5f48a08 into graphile:master Jul 20, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants