-
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@@@ LSP: Prevent deadlock with synchronous client
@@@ winders @@@ perf. lots of copying. sadge. =[ If an LSP client sends a bunch of requests, but does not read from quick-lint-js' stdout, quick-lint-js can hang in pipe_reader::write. (This came up when writing some benchmarks. My LSP client naively made a bunch of requests without reading responses during the requests.) Prevent this (unlikely) deadlock by switching stdout to non-blocking mode, buffering data in memory, and resuming reading from stdin as soon as possible.
- Loading branch information
Showing
5 changed files
with
143 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters