koding / kite

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

klient: fix client deadlock on session failure #177

Closed rjeczalik closed 8 years ago

rjeczalik commented 8 years ago

When underlying streaming transport (session) was unexpectedly closed, client hangs when no timeout was set.

We should instead expect underlying transport to fail and forward the error to the caller instead, so it does not hang, no matter whether timeout was used or not.