Open RubenGarcia opened 5 months ago
I created a minimal example of the issue with working server and client code at https://github.com/RubenGarcia/dartGrpcTimeoutIssue Please check.
I could not reproduce this with https://github.com/grpc/grpc-dart/blob/reproDeadlineError/test/timeout_repro_test.dart - needs more investigation.
Can you confirm your results using my repo? You may need to lower your timeout depending on your wifi. Example output after pressing the button a few times.
Started 192.168.178.37, timeout: 50
GRPC error: code 4, codename DEADLINE_EXCEEDED, message Deadline exceeded
GRPC error: code 4, codename DEADLINE_EXCEEDED, message Deadline exceeded
GRPC error: code 4, codename DEADLINE_EXCEEDED, message Deadline exceeded
GRPC error: code 2, codename UNKNOWN, message HTTP/2 error: Connection error: Connection is being forcefully terminated. (errorCode: 1)
GRPC error: code 4, codename DEADLINE_EXCEEDED, message Deadline exceeded
Can you confirm your results using my repo?
I don't have any phones to test this with. I could try to set it up for Linux instead.
Ok, let's check under which platforms this is an issue. I used a Huawei with EMUI-Version 12.0.0 (client) and a Pixel 3 with Android 12 (server) -> Shows the issue.