Skip to content

bi-directional streaming rpc call does not make a connect when It is a first call #796

@momadvisor

Description

@momadvisor
service SampleService {

  rpc BiDirectional(stream BiRequestMessage) returns (stream BiResponseMessage);
  rpc PingPong(PPRequestMessage) returns (PPResponseMessage);
}

Scenario 1. call PingPong and then call BiDirectional(). BiRequestMessage not sent.

It works well. Server logs say got pingpong request and then say got bi-directional request.

Scenario 2. call BiDirectional() and then call PingPong. BiRequestMessage not sent.

Something wrong. Server logs say got pingpong request and then say got bi-directional request.

Scenario 3. call only BiDirectional() and BiRequestMessage not sent.

Server logs say nothing forever. the client channel onConnectionStateChangedListener also says nothing.

Scenario 4. call only BiDirectional() and send BiRequestMessage.

Server logs say nothing forever. client can send a message but server can't take requests and can't response. the client channel onConnectionStateChangedListener also says nothing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions