[grpc-io] How to intercept every client request and add some attributes to it and collect at the server end

2018-08-05 Thread shailendra kumar
Whenever client call to server, i want to add some attribute like account, accountHolder, accountLocation and their values along with client request. At the server side, i want to collect these info. Please suggest for grpc call as well as rest call -- You received this message because you

Re: [grpc-io] Handle multi-client streaming on the server

2018-08-05 Thread Josh Humphries
Streams from multiple clients do not get intermingled. The server handler is invoked for each stream, and the handler gets a reference to the stream, for consuming events from just that one client. Also, a single client's requests always arrive in order. gRPC is built on top of TCP, which handles

Re: [grpc-io] How to intercept every client request and add some attributes to it and collect at the server end

2018-08-05 Thread Josh Humphries
I think several of the languages support the interceptor pattern (I am quite familiar with the Java and Go runtime libraries, which do). This allows you to register a client interceptor that will get to see every RPC. (Intercepting streaming RPCs in Go is a bit more complicated due to having a

Re: [grpc-io] Python Server and PHP Client Issue

2018-08-05 Thread 'Stanley Cheung' via grpc.io
1. What is the error to "sudo pecl install grpc" that you receive? What platform are you using? Please perhaps consider logging a Github issue if you have the error output, and any other relevant details. 2. Each language based on the C implementation (e.g. Python, Ruby, C#, Node, PHP) tend to

Re: [grpc-io] Why keepAliveTime is infinite by default?

2018-08-05 Thread Grpc learner
Thanks Eric! If a connection is broken, what is the policy of gprc to recreate a new connection? and how grpc re-use/share one connection? On Friday, July 20, 2018 at 2:29:12 PM UTC-7, Eric Anderson wrote: > > On Thu, Jul 19, 2018 at 12:57 PM Grpc learner > wrote: > >> Another question is :

[grpc-io] TLS/SSL handshake fails due to peer_name not peer certificate

2018-08-05 Thread grpc_client
Hi, I'm trying to establish a secure gRPC channel in a C++ based client. The connection gets rejected with the following error message: "Peer name A.B.C.D is not in peer certificate" As far as I understand the expected peer_name is the ip of the server to which the connection is being

Re: [grpc-io] Re: SSL/TLS handshake NPN vs ALPN

2018-08-05 Thread grpc_client
The fix worked! Thanks a lot! Will it go into the next grpc release? Thanks On Tuesday, July 17, 2018 at 12:20:44 PM UTC-4, jian...@google.com wrote: > > This PR would fix the the check peer error if both client and server use > NPN rather than ALPN. > https://github.com/grpc/grpc/pull/16007 >

Re: [grpc-io] Why keepAliveTime is infinite by default?

2018-08-05 Thread 'Eric Anderson' via grpc.io
On Thu, Jul 19, 2018 at 12:57 PM Grpc learner wrote: > Another question is : will `keepAlive` use trigger re-use connections? > I noticed that `keepAlive` is in channel builder, but `keepAlive` will be > applied in a connection (not a channel). > I was wondering what is the diff/relationship

[grpc-io] Re: [iOS / Objective-C] Seeking guidance for configuration for SSL

2018-08-05 Thread Rob Cecil
Muxi, Which override am I using for this method? Is there an example for Objective-C and SSL ? On Friday, June 22, 2018 at 1:22:25 PM UTC-4, Rob Cecil wrote: > > I am developing both an iOS app and server using Grpc (objective-C/Swift > and C# respectively). > > The app will be naturally