Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a wried behaviour in of bidrectional streaming RPC client on erl shell #7

Open
minghu6 opened this issue Jul 15, 2018 · 1 comment

Comments

@minghu6
Copy link

minghu6 commented Jul 15, 2018

I found in rebar3 shell:

If create 'S' and send request function call seperated with comma , that's ok:

1> {ok, S1}=hellostreamingworld_multi_greeter_client:say_hello(ctx:new()),
1>   grpcbox_client:send(S1, #{name => "hi", num_greetings => "3"}),
2> grpcbox_client:recv_data(S1).
{ok,#{message => <<"Times: 3 Hello, hi ">>}}

but if seperated with period,send seems is not successful and receive_data always return timeout:

1> {ok, S1}=hellostreamingworld_multi_greeter_client:say_hello(ctx:new()).
{ok,#{channel => <0.626.0>,encoding => identity,
      monitor_ref => #Ref<0.1583415125.268697602.72154>,
      service_def =>
          {grpcbox_def,'hellostreamingworld.MultiGreeter',
                       #Fun<hellostreamingworld_multi_greeter_client.0.23407338>,
                       #Fun<hellostreamingworld_multi_greeter_client.1.23407338>},
      stream_id => 1,stream_pid => <0.630.0>}}
2> grpcbox_client:send(S1, #{name => "hi", num_greetings => "3"}).
ok
3> grpcbox_client:recv_data(S1).
timeout

Why, It's reasonable?

@minghu6 minghu6 changed the title There is a wired behaviour in of bidrectional streaming RPC client on erl shell There is a wried behaviour in of bidrectional streaming RPC client on erl shell Jul 18, 2018
@tsloughter
Copy link
Owner

@minghu6 can you check if this is still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants