Server streaming calls require a single message to be sent from the client before they start sending response data. If your servers don't
Q1: Servers control when a server stream ends the same way clients control when the client streams end. Q2: Clients do know when streams end gracefully or error. Q3: Most calls have the ability to configure a timeout. It varies between languages, but is often found on the context or call options. On Thu, Sep 10, 2020 at 4:55 AM fofo hi <[email protected]> wrote: > Hi, > I have a scenario which is described with the following: > gRPC Version is : 1.19.0 > i am streaming data from server to client by using API IServerStreamWriter. > On the Client side i am trying to read the streamed data by using > IAsyncStreamReader : > > while (await call.ResponseStream.MoveNext().ConfigureAwait(false)) > { > ...... > } > > Since there are no data streamed from client side, i found that i am not > getting out of this loop (client side) as fast as i expected. > > *First Question* : Do i need to set the completeness of the streaming > from the server side. > *Second Question* : Am i able (On the client side) to check that the > streaming (ResponseStream) is Completed? > otherwise this Call *call.ResponseStream.MoveNext()* causes some > exception, because this call tries to pick up unavailable data. > > *Third Question* : Is there any possibilities to define some time out for > waiting the data on the client side. > > I have so far checked what is provided by the API on the server side > IServerStreamWriter, and on the client side IAsyncStreamReader, which it > doesn't help me to achieve my Goal. > Do i need to get a new upgraded gRPC version, which could help me further? > > Thanks a lot for any help. > > Best regards > Anas > > -- > You received this message because you are subscribed to the Google Groups " > grpc.io" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/grpc-io/838a3385-6b08-4d88-a258-8b0467ea6253n%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/838a3385-6b08-4d88-a258-8b0467ea6253n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Mya Pitzeruse Principal Software Engineer - Service Infrastructure Gender Pronouns: She, Her, Hers [email protected] Indeed - We help people get jobs. Indeed.com <http://www.indeed.com/> Facebook <http://www.facebook.com/indeed> | Twitter <http://www.twitter.com/indeed> | Instagram <http://www.instagram.com/indeedworks> -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAHa8AVTCseOObWN0fRbaja6hUMVfEq-a6KOOE2pGWzzuDC3m2A%40mail.gmail.com.
