jpillora / go-tcp-proxy

A small TCP proxy written in Go
MIT License
746 stars 197 forks source link

Fix for deadlock on errsig #6

Closed mpodanow closed 7 years ago

mpodanow commented 7 years ago

Remote connection error report (p.err("Remote connection failed: %s", err)) blocks on errsig channel that is not actively read at this time. As a side effect proxy keeps open sockets for incoming connections and leaks resources not terminating goroutine handling client session.

jpillora commented 7 years ago

Thanks!