You can start sending requests as soon as you initialize the client. 
Nothing will actually be sent over the network until the connection is 
properly established.

On Sunday, December 17, 2017 at 11:50:09 PM UTC-8, Manu wrote:
>
> Hi,
>
> I have a C++ server and a node.js client. I've observed that sometime my 
> node.js client is reporting a connection failure although the server is 
> running. This makes me wonder if my server is really ready to accept 
> incoming requests.
>
> Here is how I do this:
> 1 - Start node.js client
> 2 - Spawn a C++ server
> 3 - Wait for server to call `BuildAndStart` to provide the gRPC port to 
> the node.js client
> 4 - At the same time: the C++ code calls `Wait` and the node.js client 
> initializes its gRPC connection and sends his first request
>
> Is this a safe scenario? If not, how long should I wait until I can send 
> the first request?
>
> Thanks,
> Manu
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@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/bc23ba42-5d08-4bf2-91d8-c6212f06283e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to