mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-03-14 22:15:55 +00:00
This error would happen when there was a problem connecting to the local
server. The local.on('error') handler should have been a 'once' handler
because we emit the error again if it isn't a CONNREFUSED. So in the
case of a CONNRESET, it would trigger an infinite loop since the error
was being emitted back onto the local variable. Instead we just close
the remote socket and let a new one takes its place.
fixes #36
7.7 KiB
7.7 KiB