[grpc-io] grpc multithreading

2018-10-24 Thread rob . vaibhavbedi
Hi, How to write the program of grpc multithreading in python? please share some references with me. Thank you -- 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

Re: [grpc-io] how to cross compile grpc Server

2018-10-24 Thread robert engels
I think you may just be linking incorrectly, that method is part of the grpc core https://grpc.io/grpc/core/alloc_8h.htmlOn Oct 24, 2018, at 3:01 PM, Simon Chamlian wrote:for example, one of the errors is:/home/jay/works_Versa_imx7/xgrpc_server/src/libgrpc.a(httpcli.cc.o):

Re: [grpc-io] how to cross compile grpc Server

2018-10-24 Thread robert engels
I think you may just be linking incorrectly, that method is part of the grpc core https://grpc.io/grpc/core/alloc_8h.html > On Oct 24, 2018, at 3:01 PM, Simon Chamlian > wrote: > > for example, one of the errors is: > >

Re: [grpc-io] how to cross compile grpc Server

2018-10-24 Thread Simon Chamlian
This is the makefile generated by eclipse: USER_OBJS := /home/jay/works_Versa_imx7/xgrpc_server/src/libprotobuf.a /home/jay/works_Versa_imx7/xgrpc_server/src/libgrpc++.a /home/jay/works_Versa_imx7/xgrpc_server/src/libgrpc.a /home/jay/works_Versa_imx7/xgrpc_server/src/libgrpc++_reflection.a LIBS

Re: [grpc-io] how to cross compile grpc Server

2018-10-24 Thread Simon Chamlian
for example, one of the errors is: /home/jay/works_Versa_imx7/xgrpc_server/src/libgrpc.a(httpcli.cc.o): In function `append_error': /usr/src/debug/grpc/1.8.5-r0/git/src/core/lib/http/httpcli.cc:124: undefined reference to `gpr_free' So inside libgrpc.a(httpcli.cc.o) the function append_error is

Re: [grpc-io] how to cross compile grpc Server

2018-10-24 Thread Simon Chamlian
I did a cross compilation a grpc within YOCTO and ended up with the following libraries: libgrpc.a libgrpc_cronet.a libgrpc++_error_details.a libgrpc++_reflection.a libgrpc++_unsecure.a libprotobuf-c.a libgrpc++.a libgrpc++_cronet.a libgrpc_plugin_support.a libgrpc_unsecure.a libprotobuf.a

Re: [grpc-io] Channel State

2018-10-24 Thread Mauricio Ramirez
Mark, Thanks for the information. This was very helpful. On Wed, Oct 24, 2018 at 12:52 PM Mark D. Roth wrote: > I'm not sure exactly what is causing this crash, but I suspect it may be a > side-effect of the way you're monitoring the channel's connectivity state > via a timer. For example,

Re: [grpc-io] Channel State

2018-10-24 Thread 'Mark D. Roth' via grpc.io
I'm not sure exactly what is causing this crash, but I suspect it may be a side-effect of the way you're monitoring the channel's connectivity state via a timer. For example, it could be that the timer is firing after the channel has already been destroyed (either because you're failing to cancel

[grpc-io] [ANDROID} OKHttp adding auth header using an interceptor

2018-10-24 Thread Amilcar Andrade
Hi All, I want to know what is the best way to add an auth header to every request of the OKHttp client that GRPC is going to be using. This is something that you can achieve in OKHttp using an Interceptor and adding the appropriate headers to

[grpc-io] Re: grpclb ClientStats endpoint correlation

2018-10-24 Thread 'Carl Mastrangelo' via grpc.io
The Client Stats are for the endpoint you are requesting address / load balancing info, so there's only one. I don't believe there are docs, but there is an implementation in C++ IIUC. Look up "load_reporter" (the server side) and "load_balancer" (the client side) in the grpc/grpc repo:

Re: [grpc-io] What is the relation between :authority and channel credentials?

2018-10-24 Thread 'Carl Mastrangelo' via grpc.io
The authority is available to the channel credentials when the creds are being created. As you noticed, the authority is used to verify the identity in TLS, and allows the server to route your request . Does this answer your question? On Wednesday, October 24, 2018 at 2:07:08 AM UTC-7,

[grpc-io] grpclb ClientStats endpoint correlation

2018-10-24 Thread 'Johan Haals' via grpc.io
Hi, It would be fantastic if someone could provide some more context on ClientStats(https://github.com/grpc/grpc/blob/master/src/proto/grpc/lb/v1/load_balancer.proto#L66) and how it's supposed to be used. It looks like stats aren't broken down by endpoint which I would expect to make load

Re: [grpc-io] What is the relation between :authority and channel credentials?

2018-10-24 Thread Sander Saares
I found a comment on GitHub saying " At least with Java, using this with TLS will require the overridden authority to still appear on your server's cert - I believe the same is true for wrapped languages (including C#), but if you plan to use this in production this should be verified." which

[grpc-io] [gRPC C#] Populate AuthContext on server, based on JWT Authentication

2018-10-24 Thread Ivan Penchev
Cross-post from Here Clients: Java(Android)/Swift(iOS) Use case: On client -- All chanels are SSL protected, and we have a DB that stores our "token", which we call and send on reqests