Relying on IllegalStateException: Call already half-closed

17 views
Skip to first unread message

changxu

unread,
Jun 4, 2019, 5:18:03 AM6/4/19
to grpc.io
Hi all,

I wanted to know if sending second onCompleted on already half-closed rpc might have any side effects beyond throwing IllegalStateException? 

Carl Mastrangelo

unread,
Jun 5, 2019, 1:20:03 PM6/5/19
to grpc.io
There is no side effect.  The gRPC library checks the state before making any mutations.  It's still a bug to call it twice.    What is the use case?
Reply all
Reply to author
Forward
0 new messages