2 Client running on the same machine

70 views
Skip to first unread message

fabiof...@gmail.com

unread,
Jul 26, 2017, 5:48:01 AM7/26/17
to grpc.io
Hi all,

I have 2 grpc clients written in java running on the same machine but in 2 different JVMs. Both the clients doing a BIDI stream server side on the same endpoint/method, and I log each time the server sends a message. The problem i'm facing is that when I stop one client I don't see log for the other client and after a timeout it receive the message onError. Do you have any insight? is it a bug?

thanks,
Fabio

Eric Gribkoff

unread,
Jul 26, 2017, 12:06:02 PM7/26/17
to fabiof...@gmail.com, grpc.io
Hi Fabio,

I'm not sure exactly what you mean by the "server side" part when you say both clients are doing a "BIDI stream server side". But two separate clients connected to the same server should work just fine. Do you see anything in the server logs after the first client disconnects? 

Eric

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/597335c4-3a97-4638-93c2-df95c56f50e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

fabio fumarola

unread,
Jul 26, 2017, 4:18:16 PM7/26/17
to Eric Gribkoff, grpc.io
Sorry, for server side I means a grpc server running. The 2 clients call both the method 'X'. What I see when I stop one client is a call to the method on error at the server.
I found this weird, is the onError on the server shared across different ServerCallStreamObservers?
Thanks,
Fabio

On Wed, 26 Jul 2017 at 18:06, Eric Gribkoff <ericgr...@google.com> wrote:
Hi Fabio,

I'm not sure exactly what you mean by the "server side" part when you say both clients are doing a "BIDI stream server side". But two separate clients connected to the same server should work just fine. Do you see anything in the server logs after the first client disconnects? 

Eric

On Wed, Jul 26, 2017 at 2:48 AM, <fabiof...@gmail.com> wrote:
Hi all,

I have 2 grpc clients written in java running on the same machine but in 2 different JVMs. Both the clients doing a BIDI stream server side on the same endpoint/method, and I log each time the server sends a message. The problem i'm facing is that when I stop one client I don't see log for the other client and after a timeout it receive the message onError. Do you have any insight? is it a bug?

thanks,
Fabio

--
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+u...@googlegroups.com.

To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/597335c4-3a97-4638-93c2-df95c56f50e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from Gmail Mobile

Eric Gribkoff

unread,
Jul 26, 2017, 10:43:24 PM7/26/17
to fabio fumarola, grpc.io
No, the StreamObservers are not shared between separate calls. Could you share the client/server logs and/or a minimal reproduction case for the issue you're encountering?

Thanks,

Eric



On Wed, Jul 26, 2017 at 1:18 PM, fabio fumarola <fabiof...@gmail.com> wrote:
Sorry, for server side I means a grpc server running. The 2 clients call both the method 'X'. What I see when I stop one client is a call to the method on error at the server.
I found this weird, is the onError on the server shared across different ServerCallStreamObservers?
Thanks,
Fabio
On Wed, 26 Jul 2017 at 18:06, Eric Gribkoff <ericgr...@google.com> wrote:
Hi Fabio,

I'm not sure exactly what you mean by the "server side" part when you say both clients are doing a "BIDI stream server side". But two separate clients connected to the same server should work just fine. Do you see anything in the server logs after the first client disconnects? 

Eric

On Wed, Jul 26, 2017 at 2:48 AM, <fabiof...@gmail.com> wrote:
Hi all,

I have 2 grpc clients written in java running on the same machine but in 2 different JVMs. Both the clients doing a BIDI stream server side on the same endpoint/method, and I log each time the server sends a message. The problem i'm facing is that when I stop one client I don't see log for the other client and after a timeout it receive the message onError. Do you have any insight? is it a bug?

thanks,
Fabio

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/597335c4-3a97-4638-93c2-df95c56f50e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

fabio fumarola

unread,
Jul 27, 2017, 3:48:13 AM7/27/17
to Eric Gribkoff, grpc.io
Will do. 
Thank you

On Thu, 27 Jul 2017 at 04:43, Eric Gribkoff <ericgr...@google.com> wrote:
No, the StreamObservers are not shared between separate calls. Could you share the client/server logs and/or a minimal reproduction case for the issue you're encountering?

Thanks,

Eric


On Wed, Jul 26, 2017 at 1:18 PM, fabio fumarola <fabiof...@gmail.com> wrote:
Sorry, for server side I means a grpc server running. The 2 clients call both the method 'X'. What I see when I stop one client is a call to the method on error at the server.
I found this weird, is the onError on the server shared across different ServerCallStreamObservers?
Thanks,
Fabio
On Wed, 26 Jul 2017 at 18:06, Eric Gribkoff <ericgr...@google.com> wrote:
Hi Fabio,

I'm not sure exactly what you mean by the "server side" part when you say both clients are doing a "BIDI stream server side". But two separate clients connected to the same server should work just fine. Do you see anything in the server logs after the first client disconnects? 

Eric

On Wed, Jul 26, 2017 at 2:48 AM, <fabiof...@gmail.com> wrote:
Hi all,

I have 2 grpc clients written in java running on the same machine but in 2 different JVMs. Both the clients doing a BIDI stream server side on the same endpoint/method, and I log each time the server sends a message. The problem i'm facing is that when I stop one client I don't see log for the other client and after a timeout it receive the message onError. Do you have any insight? is it a bug?

thanks,
Fabio

--
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+u...@googlegroups.com.

To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/597335c4-3a97-4638-93c2-df95c56f50e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from Gmail Mobile

fabio fumarola

unread,
Aug 1, 2017, 6:49:49 AM8/1/17
to Eric Gribkoff, grpc.io
Hi Eric,

I made an example to replicate the scenario. At the end I've found that the problem in the scalapb implementation of grpc. I'm going to open an issue to them.

thanks,
Fabio

2017-07-27 8:47 GMT+01:00 fabio fumarola <fabiof...@gmail.com>:
Will do. 
Thank you

On Thu, 27 Jul 2017 at 04:43, Eric Gribkoff <ericgr...@google.com> wrote:
No, the StreamObservers are not shared between separate calls. Could you share the client/server logs and/or a minimal reproduction case for the issue you're encountering?

Thanks,

Eric


On Wed, Jul 26, 2017 at 1:18 PM, fabio fumarola <fabiof...@gmail.com> wrote:
Sorry, for server side I means a grpc server running. The 2 clients call both the method 'X'. What I see when I stop one client is a call to the method on error at the server.
I found this weird, is the onError on the server shared across different ServerCallStreamObservers?
Thanks,
Fabio
On Wed, 26 Jul 2017 at 18:06, Eric Gribkoff <ericgr...@google.com> wrote:
Hi Fabio,

I'm not sure exactly what you mean by the "server side" part when you say both clients are doing a "BIDI stream server side". But two separate clients connected to the same server should work just fine. Do you see anything in the server logs after the first client disconnects? 

Eric

On Wed, Jul 26, 2017 at 2:48 AM, <fabiof...@gmail.com> wrote:
Hi all,

I have 2 grpc clients written in java running on the same machine but in 2 different JVMs. Both the clients doing a BIDI stream server side on the same endpoint/method, and I log each time the server sends a message. The problem i'm facing is that when I stop one client I don't see log for the other client and after a timeout it receive the message onError. Do you have any insight? is it a bug?

thanks,
Fabio

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/597335c4-3a97-4638-93c2-df95c56f50e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from Gmail Mobile
--
Sent from Gmail Mobile



--
______________________________________________________

Fabio Fumarola Ph.D.

Math and IT Research @ Unicredit R&D
Reply all
Reply to author
Forward
0 new messages