-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
[windows] [readline] [https] Closing input halts event loop #21771
Copy link
Copy link
Closed
Labels
httpsIssues or PRs related to the https subsystem.Issues or PRs related to the https subsystem.readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Metadata
Metadata
Assignees
Labels
httpsIssues or PRs related to the https subsystem.Issues or PRs related to the https subsystem.readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
It turns out that if you have
readlineopen as a terminal, ask a question, make an http request, then close readline, the even loop appears to halt on the next http request.No error. No timeout. Just sits there for minutes or hours or days.
Does not affect Mac or Linux, just Windows.
Took me a few hours of debugging over a few days to figure out that I wasn't doing anything wrong in my code and then reduce it down far enough to produce an isolated test case that proves I'm not going insane. :)
Possibly related bugs
Possible workarounds
terminal: falserl.close()