Fix proxy upgrade socket timeouts (#1190) (#1249)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Lauri NevalaandJari Kolehmainen authored and GitHub committed 2020-11-06 15:29:14 +02:00
1 parent c4804de6f6
commit ca8a28d58f
1 file changed
+6
+6
View File
@@ -82,6 +82,12 @@ export class LensProxy {
proxySocket.write("\r\n")
proxySocket.write(head)
})
proxySocket.setKeepAlive(true)
socket.setKeepAlive(true)
proxySocket.setTimeout(0)
socket.setTimeout(0)
proxySocket.on('data', function (chunk) {
socket.write(chunk)
})