Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

fix: Close http connections after http-server.close() has been called #2667

Merged
merged 10 commits into from
Apr 1, 2022

Conversation

jeffsmale90
Copy link
Contributor

@jeffsmale90 jeffsmale90 commented Mar 21, 2022

fixes #2185

@jeffsmale90 jeffsmale90 changed the title Fix/close http connection fix: Close http connections after http-server.close() has been called Mar 21, 2022
…sponses shall have the underlying connection closed #2185

* This does not yet work in all cases, as uws-js-unofficial fallback does not support .close()
* Simple test case added to ensure that after calling close and a single succcessful request, all
subsequent requests will fail.
…a test to ensure no new connections are accepted while closing, and other persistent connections are still open
@jeffsmale90 jeffsmale90 marked this pull request as ready for review March 23, 2022 21:26
jeffsmale90 and others added 3 commits March 24, 2022 10:38
Co-authored-by: David Murdoch <187813+davidmurdoch@users.noreply.github.com>
Copy link
Contributor

@MicaiahReid MicaiahReid left a comment

Choose a reason for hiding this comment

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

Looks good! I have one spelling fix (from legacy code that I just happened to see) and on potential thing to make things a little cleaner.

src/packages/core/src/servers/http-server.ts Show resolved Hide resolved
@davidmurdoch davidmurdoch merged commit 0dfedda into develop Apr 1, 2022
@davidmurdoch davidmurdoch deleted the fix/close-http-connection branch April 1, 2022 21:30
davidmurdoch added a commit that referenced this pull request Apr 4, 2022
…#2667)

fixes #2185

Co-authored-by: David Murdoch <187813+davidmurdoch@users.noreply.github.com>
Co-authored-by: Micaiah Reid <micaiahreid@gmail.com>
MicaiahReid added a commit to domob1812/ganache that referenced this pull request Apr 20, 2022
…trufflesuite#2667)

fixes trufflesuite#2185

Co-authored-by: David Murdoch <187813+davidmurdoch@users.noreply.github.com>
Co-authored-by: Micaiah Reid <micaiahreid@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shutting down the Ganache Server v7.0.0
3 participants