hmgle / graftcp

A flexible tool for redirecting a given program's TCP traffic to SOCKS5 or HTTP proxy.
GNU General Public License v3.0
2.07k stars 174 forks source link

wake up the blocking pipe goroutine #27

Closed hmgle closed 4 years ago

hmgle commented 4 years ago

https://github.com/hmgle/graftcp/blob/fc5d1fbf98ff006ab7a94263fb947ae66e7af6c8/graftcp-local/local.go#L207-L210 https://github.com/hmgle/graftcp/blob/fc5d1fbf98ff006ab7a94263fb947ae66e7af6c8/graftcp-local/local.go#L198-L202 will block until all io.Copy return.