koding / websocketproxy

WebSocket reverse proxy handler for Go
http://godoc.org/github.com/koding/websocketproxy
MIT License
427 stars 120 forks source link

code: concurrent and channel issue #5

Closed cedricfung closed 8 years ago

cedricfung commented 8 years ago

https://github.com/koding/websocketproxy/blob/master/websocketproxy.go#L166

why not use two <-errc

fatih commented 8 years ago

Because only one is enough. Once we get one of the copy errors, the rest will fail as well. So having one and printing it is enough for us.

cihangir commented 8 years ago

hi @vecio if you have any use case/need for 2 errors, let us know about your situation and feel free to reopen.