The Pyright language client would result in an error when disconnecting. And the subsequent connections would not be properly connected, even though the server is still actively running on the destinated port. When attempting connections, those connections will simply hang but not fail.
I have added a timeout logic to prevent a forever hanging of the subsequent connections. However, we need to look into the actual cause of 1) error during disconnection; 2) long hanging when establishing connection.
The Pyright language client would result in an error when disconnecting. And the subsequent connections would not be properly connected, even though the server is still actively running on the destinated port. When attempting connections, those connections will simply hang but not fail.
I have added a timeout logic to prevent a forever hanging of the subsequent connections. However, we need to look into the actual cause of 1) error during disconnection; 2) long hanging when establishing connection.