Skip to content

Commit

Permalink
Not call gRPC Finish if Write fail. (envoyproxy#38)
Browse files Browse the repository at this point in the history
* Call gRPC WritesDone if Write fail.

* no to call WritesDone()
  • Loading branch information
qiwzhang committed Mar 9, 2017
1 parent 0019653 commit 3011c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mixerclient/src/grpc_transport.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class GrpcStream final : public WriteInterface<RequestType> {
void Write(const RequestType& request) override {
std::lock_guard<std::mutex> lock(write_mutex_);
if (!stream_->Write(request)) {
stream_->Finish();
write_closed_ = true;
}
}

Expand Down

0 comments on commit 3011c03

Please sign in to comment.