koding / tunnel

Tunnel proxy package in Go
BSD 3-Clause "New" or "Revised" License
322 stars 71 forks source link

client: stop timeout #28

Closed mmatczuk closed 8 years ago

mmatczuk commented 8 years ago

BUG: When a long living connection (ie. web socket or tcp streaming) is open tunnel client cannot be stopped. Invoking stop blocks forever.

To fix this in Client#Stop the blocking part is moved to anonymous function and run with timeout.

rjeczalik commented 8 years ago

Thanks @mmatczuk!

cihangir commented 8 years ago

👍