You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Language Server not stopping when client disconnects
Previously when the client sent an `exit` message, the langauge server would
attempt to close the underlying connection however it would hang, and at worst
cause high CPU usage. This commit
- Uses the callback architecture inside the TCP Server to close connection
instead of trying to close the TCP Socker within the same execution context.
This stops the possibility of a race condition which can cause unexpected
blocks
- Add a missing method `close_connection_after_writing` on the base connection
class
- Add more logging on TCP startup to describe whether the server will close
after the client disconnects
0 commit comments