Skip to content

Commit 46c1b38

Browse files
authoredOct 24, 2024··
Update binderDied() error description to spell out the possibilities for those unfamiliar with Android internals. (#11628)
Callers are frequently confused by this message and waste time looking for problems in the client when the root cause is simply a server crash. See b/371447460 for more context.
1 parent b65cbf5 commit 46c1b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎binder/src/main/java/io/grpc/binder/internal/BinderTransport.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ protected boolean setOutgoingBinder(OneWayBinderProxy binder) {
299299

300300
@Override
301301
public synchronized void binderDied() {
302-
shutdownInternal(Status.UNAVAILABLE.withDescription("binderDied"), true);
302+
shutdownInternal(Status.UNAVAILABLE.withDescription("Peer process crashed, exited or was killed (binderDied)"), true);
303303
}
304304

305305
@GuardedBy("this")

0 commit comments

Comments
 (0)
Please sign in to comment.