[grpc-io] Closing a stream with a long living context

2017-02-06 Thread Michael Bond
Hey, trying to make sure I'm doing this correctly. Right now I'm having issues with closing streams started with a context that is passed around and exists for quite awhile. In this example "ctx" is passed around to many go routines, I want to keep "ctx" around but passing it to "grpcStream"

Re: [grpc-io] Closing a stream with a long living context

2017-02-06 Thread Michael Bond
ext and cancelled it On Monday, February 6, 2017 at 12:24:33 PM UTC-6, Josh Humphries wrote: > > On Mon, Feb 6, 2017 at 1:19 PM, Michael Bond <kemper...@gmail.com > > wrote: > >> Thanks for the quick reply. Should of specified that the code in the >> original post is a

Re: [grpc-io] Closing a stream with a long living context

2017-02-06 Thread Michael Bond
t/upload half of the stream. The stream remains open until >> the server closes the other half: the response/download part of the stream. >> Cancelling the stream also closes it (as would the channel being >> disconnected or the call timing out). >> >> >> >> --