1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

fix proxy upgrade socket timeouts

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-11-01 17:02:03 +02:00
parent 70a8982c9f
commit 288b8ece6d

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)
})