C#: Only one server thread processes all requests

42 views
Skip to first unread message

Юрий Скиндерский

unread,
Dec 2, 2016, 2:51:24 AM12/2/16
to grpc.io
Could anybody please help me with the question originally posted on stackoverflow?

I have a grpc service written in C# which has 2 calls like Start and Stop. When a client calls Start (this call takes much time) and then Stop server processes requests synchronously while grpc has started 4 threads.

2016-12-01 18:55:14,199,INFO,grpc 2 (cq 2),0 parsing.c:659: HTTP:17:HDR:SVR: :path: /Service/Start
2016-12-01 18:55:14,303 [grpc 2 (cq 2)] DEBUG [RPC:27] Start 2016-12-01 18:55:14,822,INFO,grpc 0 (cq 0),0 parsing.c:659: HTTP:19:HDR:SVR: :path: /Service/Stop 2016-12-01 18:55:33,661 [grpc 2 (cq 2)] DEBUG [RPC:27] Stop

These log messages shows that request was received by grpc 0 but was processed by grpc 2 after Start has been finished.

Could you please help me to understand if it functions as designed or maybe I have missed any additional settings?

Jan Tattermusch

unread,
Dec 2, 2016, 3:59:16 AM12/2/16
to Юрий Скиндерский, grpc.io
I am not sure I understand the question correctly. Please provide more information. What platform is this? What gRPC version are you running? Are server and client different processes?

From your description, it is not clear to me if something's wrong.

--
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 grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
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/08c46dca-eff6-4790-96aa-8dc5dc3fcd9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Юрий Скиндерский

unread,
Dec 2, 2016, 4:15:37 AM12/2/16
to grpc.io
It is Windows, grpc 1.0.0 and server and client in different processes

пятница, 2 декабря 2016 г., 10:51:24 UTC+3 пользователь Юрий Скиндерский написал:

Юрий Скиндерский

unread,
Dec 2, 2016, 5:31:09 AM12/2/16
to grpc.io
It seems that completion queue is assigned per channel (per client) so all requests from the same client are processed synchronously. Can I change this behavior without client reconnection per each call?


пятница, 2 декабря 2016 г., 10:51:24 UTC+3 пользователь Юрий Скиндерский написал:
Could anybody please help me with the question originally posted on stackoverflow?
Reply all
Reply to author
Forward
0 new messages