fix(core): update
This commit is contained in:
		| @@ -3,6 +3,6 @@ | |||||||
|  */ |  */ | ||||||
| export const commitinfo = { | export const commitinfo = { | ||||||
|   name: '@pushrocks/smartproxy', |   name: '@pushrocks/smartproxy', | ||||||
|   version: '3.0.56', |   version: '3.0.57', | ||||||
|   description: 'a proxy for handling high workloads of proxying' |   description: 'a proxy for handling high workloads of proxying' | ||||||
| } | } | ||||||
|   | |||||||
| @@ -268,10 +268,19 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g= | |||||||
|         // console.log("upstream to client", message); |         // console.log("upstream to client", message); | ||||||
|         wsIncoming.send(message, { binary: isBinary }); |         wsIncoming.send(message, { binary: isBinary }); | ||||||
|       }); |       }); | ||||||
|       wsIncoming.on("error", () => wsOutgoing.terminate()); |       const terminateWsOutgoing = () => { | ||||||
|       wsOutgoing.on("error", () => wsIncoming.terminate()); |         wsOutgoing.terminate(); | ||||||
|       wsIncoming.on("close", () => wsOutgoing.terminate()); |         console.log('terminated outgoing ws.'); | ||||||
|       wsOutgoing.on("close", () => wsIncoming.terminate()); |       } | ||||||
|  |       wsIncoming.on("error", () => terminateWsOutgoing()); | ||||||
|  |       wsIncoming.on("close", () => terminateWsOutgoing()); | ||||||
|  |  | ||||||
|  |       const terminateWsIncoming = () => { | ||||||
|  |         wsIncoming.terminate(); | ||||||
|  |         console.log('terminated incoming ws.'); | ||||||
|  |       } | ||||||
|  |       wsOutgoing.on("error", () => terminateWsIncoming()); | ||||||
|  |       wsOutgoing.on("close", () => terminateWsIncoming()); | ||||||
|  |  | ||||||
|     }); |     }); | ||||||
|     this.httpsServer.keepAliveTimeout = 600 * 1000; |     this.httpsServer.keepAliveTimeout = 600 * 1000; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user