-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix hanging stdio servers #1200
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
Conversation
Co-authored-by: TomasRup <tomasr@wix.com>
Ensure proper disposal of mock streams to prevent resource leaks and avoid process hangs.
- Make test servers use ts and init them with tsx - Add test to check if hanging server actually gets killed
commit: |
|
fixes #271 |
felixweinberger
left a comment
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.
LGTM, though would be a great opportunity to match the behavior to the spec more precisely while we're in this space
|
Oooh matching python now. |
|
|
||
| if (processToClose.exitCode === null) { | ||
| try { | ||
| processToClose.kill('SIGTERM'); |
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.
🧑🍳 👌
thanks to #818 and @johnnyasantoss for the pr. Adding to your work here.
Also adds a fixtures folder.
Motivation and Context
How Has This Been Tested?
Breaking Changes
Types of changes
Checklist
Additional context