grpc / grpc-haskell

gRPC library binding for Haskell.
Apache License 2.0
155 stars 16 forks source link

Read RECV_STATUS_ON_CLIENT during call #1

Closed kolmodin closed 7 years ago

kolmodin commented 7 years ago

RECV_STATUS_ON_CLIENT can be sent at any point during a call.

Currently RECV_STATUS_ON_CLIENT is only checked when the client expect the call to be over, but it can finish much earlier, for example when calling a STATUS_UNIMPLEMENTED method.

Listening for the status needs to be done from the start of the call, and if the status is received it needs to have effect (i.e. return Status) during the next attempt to do a call batch.

kolmodin commented 7 years ago

Fixed in af8f36abcd382b6501217e025e402e30da02cbf5.