-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rpc): reset TC solver on file/module load (#1258)
* fix(rpc): reset TC solver on file/module load Some difficult to reproduce bugs regarding the RPC server hanging (#1250) seemed to be related to the type checker solver (Z3) hanging after periods of extended use. I.e., a module would load/error quickly normally, but if preceded by enough prior solver/server activity, Z3 would consistently hang. To avoid this, we can simply reset the solver and reload the type checker prelude when the server is asked to load a file or module. This solves the Z3 hang issues in observed cases and requires no additional forking (which we're trying to minimize when possible).
- Loading branch information
Andrew Kent
authored
Jul 28, 2021
1 parent
1b52a35
commit 03311ce
Showing
3 changed files
with
34 additions
and
12 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