[grpc-io] When to invoke Requestxxx API when use async server

2016-08-17 Thread yihao yang
In the example of async server (see https://github.com/grpc/grpc/blob/release-0_14/examples/cpp/helloworld/greeter_async_server.cc ) I am very confused when to invoke RequestSayHello in the code. It seems in the example, RequestSayHello cannot be invoked concurrently. My questions are: 1. Request

[grpc-io] gRPC - C#. Can Channel and Client be shared by multiple threads?

2016-08-17 Thread soiferj
I am writing a webserver that has to service a lot of requests concurrently - can multiple threads safely access a Channel or a Client safely? -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails f

[grpc-io] how does grpc handle DNS address changes?

2016-08-17 Thread Yaz Saito
Assume we have foo.example.com, whose value changes unpredictably. 1. Initially, the A record of foo.example.com points to, say 1.2.3.4. 2. Start a grpc client, with the server pointed at foo.example.com:1. The client fails to connect since there's nothing running at 1.2.3.4:1. 3. Start

Re: [grpc-io] protobuf-c-rpc server and grpc client

2016-08-17 Thread Kabloc Vacavoa
OK, Sorry... Firstly sorry about my English... I have a project made in C that use protobuf-c-rpc to create a RPC procedures, that interfaces with others application in C normally. Now I need to do an application in NodeJs that uses the same interface, I tried by using protobuf-rpc: var expre

Re: [grpc-io] detect client disconnect C++

2016-08-17 Thread 'Yang Gao' via grpc.io
You may want to try ServerContext::AsyncNotifyWhenDone. On Wed, Aug 17, 2016 at 2:51 AM, Chaitanya Gangwar < chaitanyagang...@gmail.com> wrote: > Hi, > > I have Async streaming server implemented in C++. > I want to know is there any way to detect on server side when a client > disconnects so tha

Re: [grpc-io] protobuf-c-rpc server and grpc client

2016-08-17 Thread 'Nathaniel Manista' via grpc.io
On Wed, Aug 17, 2016 at 6:13 AM, wrote: > I worked in a project that implemented a protocol buffers RPC in C using > protobuf-c-rpc and now I'm trying develop a C++ or NodeJs client using grpc > but it not working. > How much more can you share with us about what's not working

[grpc-io] protobuf-c-rpc server and grpc client

2016-08-17 Thread kabloc
Hi everybody, I worked in a project that implemented a protocol buffers RPC in C using protobuf-c-rpc and now I'm trying develop a C++ or NodeJs client using grpc but it not working. -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe

[grpc-io] detect client disconnect C++

2016-08-17 Thread Chaitanya Gangwar
Hi, I have Async streaming server implemented in C++. I want to know is there any way to detect on server side when a client disconnects so that i can clean up the resources. Currently i am relying on "m_serverContext->IsCancelled ()" but i need to periodically check this if the client is pres