Fix connections sticking around indefinitely
For some reason it only affects the extension host socket (something to do with passing it via IPC?) but I changed both just to be sure. Fixes #1795.
This commit is contained in:
parent
a942531079
commit
ebef18d626
@ -1811,7 +1811,7 @@ index 0000000000..1166835371
|
|||||||
+}
|
+}
|
||||||
diff --git a/src/vs/server/node/connection.ts b/src/vs/server/node/connection.ts
|
diff --git a/src/vs/server/node/connection.ts b/src/vs/server/node/connection.ts
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000..23934687de
|
index 0000000000..36e80fb696
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/vs/server/node/connection.ts
|
+++ b/src/vs/server/node/connection.ts
|
||||||
@@ -0,0 +1,157 @@
|
@@ -0,0 +1,157 @@
|
||||||
@ -1878,7 +1878,7 @@ index 0000000000..23934687de
|
|||||||
+ protected doDispose(): void {
|
+ protected doDispose(): void {
|
||||||
+ this.protocol.sendDisconnect();
|
+ this.protocol.sendDisconnect();
|
||||||
+ this.protocol.dispose();
|
+ this.protocol.dispose();
|
||||||
+ this.protocol.getSocket().end();
|
+ this.protocol.getUnderlyingSocket().destroy();
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ protected doReconnect(socket: ISocket, buffer: VSBuffer): void {
|
+ protected doReconnect(socket: ISocket, buffer: VSBuffer): void {
|
||||||
@ -1905,7 +1905,7 @@ index 0000000000..23934687de
|
|||||||
+ if (this.process) {
|
+ if (this.process) {
|
||||||
+ this.process.kill();
|
+ this.process.kill();
|
||||||
+ }
|
+ }
|
||||||
+ this.protocol.getSocket().end();
|
+ this.protocol.getUnderlyingSocket().destroy();
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ protected doReconnect(socket: ISocket, buffer: VSBuffer): void {
|
+ protected doReconnect(socket: ISocket, buffer: VSBuffer): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user