[grpc-io] Re: intercept unumplemented method (for prometheus metrics)

2020-07-22 Thread 'zda...@google.com' via grpc.io
I'm not familiar with VertX gRPC, but in Java, interceptor is still called 
when some client calls an unimplemented method.

On Friday, May 15, 2020 at 2:27:03 AM UTC-7 petr...@gmail.com wrote:

> Our SRE team want add to metrics all call for unimplemented method. Is 
> there way to do it? to intercept when some client call unimplemented method?
>
> Right now i have MonitorInterceptor, where i handle some thing like 
> metrics, opentracing etc. but this interceptor is not call when some client 
> call unimplemented method.
>
> I am using Kotlin with Vertx GRPC
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/ba887a16-5ee8-4541-9853-1909a24143d3n%40googlegroups.com.


[grpc-io] Is it possible to make GRPC_OP_RECV_MESSAGE optional on client side

2020-07-22 Thread Ram
Team gRPC,

We've a scenario where a gRPC client sets up all the operations and does a 
grpc_call_start_batch(), something like this:

https://github.com/grpc/grpc/blob/master/test/core/end2end/tests/trailing_metadata.cc#L153
memset(ops, 0, sizeof(ops));
op = ops;
op->op = GRPC_OP_SEND_INITIAL_METADATA;
op->data.send_initial_metadata.count = 2;


..
op->op = GRPC_OP_RECV_INITIAL_METADATA;
op->data.recv_initial_metadata.recv_initial_metadata = 
_metadata_recv;
op->flags = 0;
op->reserved = nullptr;
op++;
op->op = GRPC_OP_RECV_MESSAGE;
op->data.recv_message.recv_message = _payload_recv;
op->flags = 0;
op->reserved = nullptr;
op++;


..
error = grpc_call_start_batch(c, ops, static_cast(op - ops), tag(1),
nullptr);

GPR_ASSERT(GRPC_CALL_OK == error);

In some scenarios, the server side sends only initial metadata whereas in 
some other scenarios it sends a message as well along with initial metadata 
and the client isn't aware of when one vs the other scenario happens.

Is it possible to wake up client (i.e., event posted on the completion 
queue) to respond to both scenarios? I tried digging around in test subdir, 
couldn't find my scenario https://github.com/grpc/grpc/tree/master/test 

Any pointers or alternative options on this will be of help, thank you!

Best, -Ram.


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/8f00ae68-6af5-4393-a910-720d107549bcn%40googlegroups.com.


Re: [grpc-io] Re: Pure C client

2020-07-22 Thread 'Mark D. Roth' via grpc.io
It's also worth noting that the C-core API is not really a public API,
since it's aimed at language integrators, not at applications.  In
particular, we do not guarantee any backward compatibility in the C-core
API; it may change in breaking ways from release to release.  Currently, we
do publish gRFCs (see https://github.com/grpc/proposal/) when this happens,
but that policy could change in the future.

On Wed, Jul 22, 2020 at 10:19 AM 'Lidi Zheng' via grpc.io <
grpc-io@googlegroups.com> wrote:

> You can refer to gRPC Core's header file:
> https://github.com/grpc/grpc/tree/master/include/grpc.
>
> gRPC Core exposes C API, but it contains large number of C++ code. The
> gRPC Core API is designed to serve language wrappers (like C++, Python,
> Ruby) and it could be challenge to develop application upon.
>
> On Thursday, July 16, 2020 at 2:43:43 AM UTC-7 zing...@gmail.com wrote:
>
>> Hello all.
>>
>> I'm pretty new to grpc and library implementations. I need to integrate
>> grpc client to my pure c embedded application. Can you please advise, is it
>> possible to use gprc library from pure c, without C++ layer?
>>
>> As I see, for now, there is only Cpp in the examples.
>>
>> Thank you in advance,
>> Best regards,
>> Anton
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/grpc-io/d99fbfa9-29b9-4f93-a5ec-145530086398n%40googlegroups.com
> 
> .
>


-- 
Mark D. Roth 
Software Engineer
Google, Inc.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CAJgPXp5xFEz0DSwU43-SFHNSV9H5YOR7ZvObhsN-RSm0gxSEwg%40mail.gmail.com.


Re: [grpc-io] Re: Getting GRPC_ERROR When using docker container to realize grpc cpp server,

2020-07-22 Thread sathya M
As you said yes I understood the error, but what should be the possible
reason for this behavior, since the same image can able to run  manually
inside same container ..
In grpc code failure is exactly for getaddrinfo
 To give some idea about my project
1. I am using grpc cpp as server which is compiled in centos bionic version
, all required grpc libraries and its dependencies are statically linked ...
2. Building docker image from debian buster,  and entry point as the
compiled output of step 1
3. I tried Grpc server listening is localhost:50053
0.0.0.0:50053
Some random ip:50053
All the three cases I'm getting same error.
4. /etc/resolved.conf is also proper...
5. I'm using docker run -it --net=host , in order to use host networking
ip...am I missing something?

On Wed, 22 Jul 2020, 11:03 pm 'Lidi Zheng' via grpc.io, <
grpc-io@googlegroups.com> wrote:

> You could try to resolve the same address in the container. The error
> complains about failed name resolution.
>
> On Wednesday, July 22, 2020 at 5:24:56 AM UTC-7 sathya...@gmail.com wrote:
>
>> docker run -it  --net=host --name nzs-port7 dnbapp-nzs:1.0 /bin/bash
>> E0722 08:49:44.118516158  12 server_chttp2.cc:40]
>> {"created":"@1595407784.118446502","description":"Name or service not
>> known","errno":-2,"file":"
>> /root/sathya-207-mdev/nz-svc/third_party/grpc_src/src/core/lib/iomgr/resolve_address_posix.cc","file_line":108,"os_error":"Name
>> or service not known","syscall":"getaddrinfo","target_address":"/bin/bash"}
>>
>> When i run the same image manually inside docker its working fine as
>> expected,
>> Can u give me an idea/clue about RC ?
>> /etc/resolv.conf, and everything is fine as expected
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/grpc-io/fe66933e-c15c-4f29-982c-7c07ccda544cn%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CADTTu%3DvmWXU4Lf9Z7t0P94FFmSi7v2VB_KbhObUov-G4VsfgBA%40mail.gmail.com.


[grpc-io] Re: Getting GRPC_ERROR When using docker container to realize grpc cpp server,

2020-07-22 Thread 'Lidi Zheng' via grpc.io
You could try to resolve the same address in the container. The error 
complains about failed name resolution.

On Wednesday, July 22, 2020 at 5:24:56 AM UTC-7 sathya...@gmail.com wrote:

> docker run -it  --net=host --name nzs-port7 dnbapp-nzs:1.0 /bin/bash
> E0722 08:49:44.118516158  12 server_chttp2.cc:40]
> {"created":"@1595407784.118446502","description":"Name or service not 
> known","errno":-2,"file":"
> /root/sathya-207-mdev/nz-svc/third_party/grpc_src/src/core/lib/iomgr/resolve_address_posix.cc","file_line":108,"os_error":"Name
>  
> or service not known","syscall":"getaddrinfo","target_address":"/bin/bash"}
>
> When i run the same image manually inside docker its working fine as 
> expected,
> Can u give me an idea/clue about RC ?
> /etc/resolv.conf, and everything is fine as expected
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/fe66933e-c15c-4f29-982c-7c07ccda544cn%40googlegroups.com.


[grpc-io] Re: How to get IP address in a connected grpc client?

2020-07-22 Thread 'Lidi Zheng' via grpc.io
Currently, this functionality is not supported. But there is an ongoing 
effort to do so in gRPC Core: https://github.com/grpc/grpc/pull/23489. Feel 
free to comment on the thread for your need.

On Saturday, July 18, 2020 at 1:47:44 AM UTC-7 xx1207...@gmail.com wrote:

> I've tried to build a grpc channel like this:
>
> grpc::CreateCustomChannel(serverIP + ":" + serverPort, 
> grpc::SslCredentials(sslOptions), args);
>
>
> I guess that grpc internally bind a IP for grpc client.
>
> *Now, how can I prossibly get the binded IP of client?*
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/a483d236-4eb2-4124-8e14-34c3d54256b2n%40googlegroups.com.


[grpc-io] Re: Pure C client

2020-07-22 Thread 'Lidi Zheng' via grpc.io
You can refer to gRPC Core's header file: 
https://github.com/grpc/grpc/tree/master/include/grpc.

gRPC Core exposes C API, but it contains large number of C++ code. The gRPC 
Core API is designed to serve language wrappers (like C++, Python, Ruby) 
and it could be challenge to develop application upon.

On Thursday, July 16, 2020 at 2:43:43 AM UTC-7 zing...@gmail.com wrote:

> Hello all.
>
> I'm pretty new to grpc and library implementations. I need to integrate 
> grpc client to my pure c embedded application. Can you please advise, is it 
> possible to use gprc library from pure c, without C++ layer?
>
> As I see, for now, there is only Cpp in the examples.
>
> Thank you in advance,
> Best regards,
> Anton
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/d99fbfa9-29b9-4f93-a5ec-145530086398n%40googlegroups.com.


[grpc-io] gRPC SSL communication for .NET Framework to .NET Core Server.

2020-07-22 Thread poulosekutty0
The Question in short is 
Can I use C# Full .NET Framework Client with  C# .NET core client with a 
secured Channel.?
Can you lead me to some examples where this is done? I could not find 
anywhere if this can be  done or It Cannot be done.

Detail:
I made an example using .NET Framework client with Grpc C# Github 
 as the reference and 
.NET Core client with this example from Grpc dotnet 
 as a 
the reference.
I was able to establish an insecure communication channel with 
new Channel("127.0.0.1", 5000, ChannelCredentials.Insecure)
and the Non-Https port opened in 5000 in the ASP.NET Core server.

When I try to connect with  
var channel = new Channel("127.0.0.1", 5001, new SslCredentials());
to the Https port 5000 in the ASP.NET Core ServerI

How can I use a secure channel to communicate. I want to use the same pfx + 
password combination.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/f46f84ce-bd81-4389-8e58-0e2f1f3be165o%40googlegroups.com.


[grpc-io] Getting GRPC_ERROR When using docker container to realize grpc cpp server,

2020-07-22 Thread sathya M
docker run -it  --net=host --name nzs-port7 dnbapp-nzs:1.0 /bin/bash
E0722 08:49:44.118516158  12 server_chttp2.cc:40]
{"created":"@1595407784.118446502","description":"Name or service not 
known","errno":-2,"file":"
/root/sathya-207-mdev/nz-svc/third_party/grpc_src/src/core/lib/iomgr/resolve_address_posix.cc","file_line":108,"os_error":"Name
 
or service not known","syscall":"getaddrinfo","target_address":"/bin/bash"}

When i run the same image manually inside docker its working fine as 
expected,
Can u give me an idea/clue about RC ?
/etc/resolv.conf, and everything is fine as expected

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/5ec60e93-7a23-4ee0-b7a3-f2b2d8a2dda7n%40googlegroups.com.