Re: [grpc-io] Re: [C++] CompletionQueue::Next() return vs ok parameter value

2017-09-05 Thread 谭锦彪
I agree with you, but it really happend, and in high frequency, maybe it's a bug? It's a unary RPC. 在 2017年9月6日星期三 UTC+8上午12:26:14,Mark D. Roth写道: > > If the tag being returned from the completion queue is the result of a > Finish() call, then I think ok should always be true, even if the status

[grpc-io] [C#] Does a GRPC server block while the server implementation handles the call?

2017-09-05 Thread lcmager
When multiple clients concurrently make the same call to a GRPC server, does the server answere these calls asynchronously? I'm using C#. In case I want the server to handle the calls synchronously should I use some sort of locking like SemaphoreSlim? Additionally, I've read that creating a con

Re: [grpc-io] Best practice for client channel

2017-09-05 Thread 'Eric Anderson' via grpc.io
On Tue, Sep 5, 2017 at 6:32 AM, Amit Saha wrote: > Digging up this thread. > This thread was just shy of a year old. It would have been better to start another thread and just reference this one with a link. I guess you are suggesting, that a "client" program (which may be composed > of multipl

[grpc-io] Re: How can I do a A/B testing for my grpc server cluster?

2017-09-05 Thread wenboz via grpc.io
grpc-gateway should work. Let us know how well zulu works with grpc-gateway + grpc. On Sunday, September 3, 2017 at 11:23:58 PM UTC-7, Joseph Kei wrote: > > I want to do A/B testing on my product environment. I try to use zuul but > it only surpport REST. > If I still stick on using zuul, is g

Re: [grpc-io] Getting GRPC working when server is behind LB or Proxy

2017-09-05 Thread tzury
Thank you all for advise and suggestions! On Wednesday, September 6, 2017 at 3:15:34 AM UTC+3, Eric Anderson wrote: > > We normally recommend using a proxy that supports HTTP/2 to the backend, > like nghttpx and derivatives (Enjoy, Istio). If that's not possible, then > the solutions tend to inv

Re: [grpc-io] Java client get server TLS certificate from a StreamObserver connection.

2017-09-05 Thread 'Eric Anderson' via grpc.io
On Tue, Sep 5, 2017 at 1:07 PM, wrote: > Is there a means for the client to obtain the certificate bytes from the > TLS negotiation that was sent by the server ? The reason I ask, to avoid a > replay security scenario the idea is for the client to hash this and send > it back with requests. > T

Re: [grpc-io] Getting GRPC working when server is behind LB or Proxy

2017-09-05 Thread 'Eric Anderson' via grpc.io
We normally recommend using a proxy that supports HTTP/2 to the backend, like nghttpx and derivatives (Enjoy, Istio). If that's not possible, then the solutions tend to involve something that looks like grpc-web. If the proxy you are already using supports HTTP/1.1 trailers, it should be possible

[grpc-io] Java client get server TLS certificate from a StreamObserver connection.

2017-09-05 Thread cr22rc
Hi Is there a means for the client to obtain the certificate bytes from the TLS negotiation that was sent by the server ? The reason I ask, to avoid a replay security scenario the idea is for the client to hash this and send it back with requests. I honestly don't know the details of this but j

Re: [grpc-io] Python: How are multiple server processes listening on the same port/fd?

2017-09-05 Thread 'Ken Payson' via grpc.io
On Tue, Sep 5, 2017 at 6:07 AM, Amit Saha wrote: > > > On Tue, Sep 5, 2017 at 9:02 AM Amit Saha wrote: > >> On Tue, 5 Sep 2017 at 6:44 am, Ken Payson wrote: >> >>> gRPC Python sets the SO_REUSEADDR option on server sockets, which allows >>> multiple servers to bind to the same port. >>> >> >> T

Re: [grpc-io] Re: [C++] CompletionQueue::Next() return vs ok parameter value

2017-09-05 Thread 'Mark D. Roth' via grpc.io
If the tag being returned from the completion queue is the result of a Finish() call, then I think ok should always be true, even if the status is not okay. This is because the underlying op in C-core always succeeds: https://github.com/grpc/grpc/blob/master/include/grpc/impl/codegen/grpc_types.h

[grpc-io] Re: Python: setting service wide client timeout

2017-09-05 Thread Evan Jones
I think this is exactly what Service Configs are supposed to solve, but I haven't investigate them at all: https://github.com/grpc/grpc/blob/master/doc/service_config.md Hope that helps, Evan On Saturday, September 2, 2017 at 4:24:20 AM UTC-4, Amit Saha wrote: > > Hi all, > > I can set call s

[grpc-io] Preventing RPC access to a single process when using localhost

2017-09-05 Thread johnsiilver
I've got a process that is running GRPC servers on a single device via localhost in Golang. This gives me protection from external access, but I would like to restrict down local access as well. I would not want another user on the same device getting access. I could switch over to using do

Re: [grpc-io] Blocking on multiple grpc completion queues

2017-09-05 Thread akshithasriraman
This was enormously helpful. Thank you so much for your response! Regards, Akshitha On Thursday, August 31, 2017 at 7:40:50 PM UTC-4, Sree Kuchibhotla wrote: > > Hi Akshita, > Just taking a step back, If you need some way to monitor multiple > channels, one pattern that you can use is to just c

Re: [grpc-io] Best practice for client channel

2017-09-05 Thread Amit Saha
On Saturday, September 17, 2016 at 2:25:54 PM UTC+10, Eric Anderson wrote: > > Reading another thread made me want to tweak my statement: >> >> Only in very heavy throughput (when we start talking about trying to >> fully saturate a server NIC) should you even begin to consider do something >>

Re: [grpc-io] Python: How are multiple server processes listening on the same port/fd?

2017-09-05 Thread Amit Saha
On Tue, Sep 5, 2017 at 9:02 AM Amit Saha wrote: > On Tue, 5 Sep 2017 at 6:44 am, Ken Payson wrote: > >> gRPC Python sets the SO_REUSEADDR option on server sockets, which allows >> multiple servers to bind to the same port. >> > > Thanks. Is there any reason why this is set to be the default beha