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

Support setting http.Server properties through config. #3

Merged
merged 1 commit into from
Apr 24, 2020

Conversation

insightfuls
Copy link
Contributor

@insightfuls insightfuls commented Apr 24, 2020

There are some http.Server properties that are useful to be able to set as part of the configuration of the server. This allows you to put the properties on the config object passed to the SimpleWeb constructor to set the corresponding keys on the Server instance.

One reason this can be useful is if your application is behind a load balancer: your app's keepAliveTimeout should be greater than your load balancer's idle timeout.

Another reason this is useful is to work around bug nodejs/node#27363 (In short, make your headersTimeout greater than your keepAliveTimeout.)

@kierans kierans merged commit 18ae59d into kierans:master Apr 24, 2020
@kierans
Copy link
Owner

kierans commented Apr 24, 2020

Good job @insightfuls

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.

2 participants