koding / kite

Micro-service framework in Go
https://godoc.org/github.com/koding/kite
MIT License
3.26k stars 300 forks source link

kite: invalidate session on permanent send errors #175

Closed rjeczalik closed 8 years ago

rjeczalik commented 8 years ago

This PR mostly fixes notifications on c.disconnect when there are more goroutines receiving on it. I've limited all io.ReadAll, since e.g. on proxy issues during heartbeats it reads whole content of proxy web pages etc., which is not needed.

Related: https://github.com/koding/koding/pull/8641