Adding some more information.

I am using grpc 1.2.2.

I ran the client in the debugger and when it blocked I saw that the stack 
trace showed that it blocks at:

Grpc.Core.dll!Grpc.Core.Internal.CompletionQueueSafeHandle.Pluck(System.IntPtr 
tag) Unknown
  Grpc.Core.dll!Grpc.Core.Internal.AsyncCall<Request, 
Response>.UnaryCall(Request msg) Unknown
  Grpc.Core.dll!Grpc.Core.DefaultCallInvoker.BlockingUnaryCall<Request, 
Response>(Grpc.Core.Method<Request, Response> method, string host, 
Grpc.Core.CallOptions options, Request request) Unknown
  
Grpc.Core.dll!Grpc.Core.Internal.InterceptingCallInvoker.BlockingUnaryCall<Request,
 
Response>(Grpc.Core.Method<Request, Response> method, string host, 
Grpc.Core.CallOptions options, Request request) Unknown

Not sure what this means though. 

Thanks and Regards
Dibyendu

On Monday, 8 May 2017 21:30:48 UTC+1, [email protected] wrote:
>
> Hi,
>
> I am investigating a problem I am facing. My setup is as follows. The 
> client and server are both written in C#. I am running the test on Windows 
> 10. 
>
> The service is very simple. It sleeps for given duration and returns the 
> text that was sent it.
> The client is a command line program that opens a channel and calls the 
> service a given number of times and then exits.
>
> The test is as follows:
>
> In one session I start a client with a sleep parameter of 30000 millisecs.
>
> In another session I start a client with sleep parameter of 10 millisecs, 
> and iteration parameter of 10.
> I repeatedly start the client in the second session in sequence - i.e. 
> once the client exits I restart it.
>
> What I notice is this:
>
> In the second session the client completes successfully (i.e. calls the 
> service 10 time) the first few times it is called. Then at the next 
> invocation it just hangs at the first call until the client in the first 
> session finishes. 
>
> My feeling is that it is something to do with Channels? Each time the 
> client is started, it creates a channel and does 10 calls to the server. 
> Once the channel is established the calls go through fine. But I do not 
> understand why the 3rd or 4th client invocation just hangs until the client 
> in the first session completes. 
>
> Any hints on what the issue might be? 
>
> I will create a small test case to show the problem - currently it is part 
> of a larger project so it will take a little time to setup a standalone 
> test.
>
> Thanks and Regards
> Dibyendu
>
>
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/b3dc60ef-9061-4b96-9b3b-5a7cf87803fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to