-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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(http-server): handle http keepalive connections upon application.stop() #4146
Conversation
7b955b2
to
345217b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition 👏
Have you considered updating our project template(s) to configure a reasonable gracePeriodForClose
, for example 1 second? This will make the feature easier to discover, because developers will see it directly in code, no need to search documentation (and know what to search for). If you decide to make this change, then please put it in a new commit (or even a new PR), so that we have meaningful release notes.
Also do we need to update any pages in docs/site
to mention this new flag?
packages/http-server/src/__tests__/integration/http-server.integration.ts
Outdated
Show resolved
Hide resolved
packages/http-server/src/__tests__/integration/http-server.integration.ts
Outdated
Show resolved
Hide resolved
0365d87
to
69554ba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new version is much better, but not there yet.
packages/http-server/src/__tests__/integration/http-server.integration.ts
Outdated
Show resolved
Hide resolved
69554ba
to
d54626f
Compare
@bajtos Comments addressed. PTAL. |
d54626f
to
ac5d3c2
Compare
Inspired by https://github.com/godaddy/terminus and https://github.com/hunterloftis/stoppable.
Checklist
👉 Read and sign the CLA (Contributor License Agreement) 👈
npm test
passes on your machinepackages/cli
were updatedexamples/*
were updated👉 Check out how to submit a PR 👈