Re: [grpc-io] node.js closing a client, is it possible?

2017-02-15 Thread Francesco Lazzarino
Michael, I haven't tried grpc.closeClient(client) yet, but I did try client.$channel.close(), which seems to be the same. To the best of my knowledge CloseWait/FinWait2 means that the client and server have started termination of the TCP session, but not finalized it. The impact is that

Re: [grpc-io] async model rpc sequence

2017-02-15 Thread 'Craig Tiller' via grpc.io
You've misunderstood :) The server application needs to request incoming calls, and we need to match them to requests as they come in. We arbitrarily reverse to order of matching (because we get a faster implementation), but preserve the order of actual requests presented to the application. On

[grpc-io] Re: gRPC-Java missing interfaces

2017-02-15 Thread 'Penn (Dapeng) Zhang' via grpc.io
The rationale is discussed in https://github.com/grpc/grpc/issues/5371 For server side, Mocking/DI works fine for abstract base class. For client side, you should never mock the stubs, because a mock/fake stub is totally inconsistent with how the gRPC library actually works. For testing, a

[grpc-io] gRPC-Java missing interfaces

2017-02-15 Thread Ryan Michela
When protoc generates java stubs, it doesn't create interfaces for stubs or services. Instead, the blocking/async stubs are final classes and the service is an abstract base class. Interfaces would make mocking, DI, and utility classes easier to implement. Is the absence of generated

[grpc-io] Re: How to add global metadata for Python client and how to check metadata for server like middleware?

2017-02-15 Thread joestaines1
As for middleware, i would keep an eye on this issue: https://github.com/grpc/grpc/issues/8767 On Tuesday, February 14, 2017 at 12:16:42 PM UTC, yan...@chaitin.com wrote: > > I'd like to add some metadata like token or version at each call, and > server should check it. > > I know how to add

[grpc-io] Re: GRFC L4 Add JRuby Support

2017-02-15 Thread apolcyn via grpc.io
As has been noted before, I think this would be possible by doing a pure implementation, wrapping the java client, or with a JNI wrapper over the C-core (these implementations probably end up relatively different from C-wrapping grpc-ruby). Actually one thing hasn't been noted yet: If only a

[grpc-io] AuthMetadataProcessor and AuthContext: what is the purpose of adding a property of consumed metadata

2017-02-15 Thread joestaines1
Hi, After figuring out how to achieve authorization and looking at the test code in grpc source, i notice that in the AuthMetadataProcessor, the consumed metadata is added as a property to AuthContext. What is the purpose of this AuthContext? Is it used as an authorization cache? Or is it

Re: [grpc-io] node.js closing a client, is it possible?

2017-02-15 Thread 'Michael Lumish' via grpc.io
It's a little awkward, but you can close a client with grpc.closeClient(client). That just closes the channel, though, so if that didn't work, that's a bug. I don't recognize the names "CloseWait" and "FinWait2", can you be more specific about how this is failing? On Tue, Feb 14, 2017 at 7:54 PM

[grpc-io] GRPC Command Line tool error: Core Dumped

2017-02-15 Thread Sanket Lawangare
This is the command I used to make a grpc request to my server: $ /work/Go/src/github.com/grpc/bins/opt/grpc_cli call 0.0.0.0:50051 ExampleServerData example.proto "server_id: '---xxx'" --enable_ssl=false connecting to 0.0.0.0:50051 E0215 16:11:59.4383776278343 cli_call.cc:73]

[grpc-io] Grpc Server not working: Exception: "Received RST_STREAM with error code 8".

2017-02-15 Thread matthias.weiser via grpc.io
Hi, I am integrating currently gRPC C# into a program which uses several third party libraries. Thus it is also forced to use x86/32 bit. When calling even a trivial server implementation I receive "Received RST_STREAM with error code 8". The full stack can be found below. The used Nuget