Closed rizar closed 7 years ago
I don't see where you call connect()
. Should it lazily connect when you access context
?
get_data() calls connect()
On Wed, 19 Apr 2017 at 11:48 dmitriy-serdyuk notifications@github.com wrote:
I don't see where you call connect(). Should it lazily connect when you access context?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mila-udem/fuel/pull/386#issuecomment-295318299, or mute the thread https://github.com/notifications/unsubscribe-auth/AAn8Yq3-SCd19Ay-pWmhKSPTLq8kf1oaks5rxizigaJpZM4NBraC .
Ok, LGTM then.
Two changes:
ServerDataStream
to postpone establishing the connection until it's really necessary for flexibility reasons. Also, it was kind of asymmetric so far that in during the construction it connects immediately but it doesn't so when unpickled.