(emitter: NodeJS.EventEmitter, label: string)
| 512 | if (proxy) { |
| 513 | // ProxyCommand streams can emit EPIPE/ECONNRESET; handle to avoid crashes. |
| 514 | const attach = (emitter: NodeJS.EventEmitter, label: string) => { |
| 515 | attachStreamErrorHandler(emitter, label, { |
| 516 | logger: log, |
| 517 | onIgnorable: cleanupProxySocket, |
| 518 | onUnexpected: cleanupProxySocket, |
| 519 | }); |
| 520 | }; |
| 521 | |
| 522 | attach(proxy.process, "ssh2-proxy-process"); |
| 523 | attach(proxy.sock, "ssh2-proxy-socket"); |
no test coverage detected