mirror of https://github.com/grpc/grpc.git
[Python AIO] Return EOF from UnaryStreamCall.read() as documented (#36660)
Fix: https://github.com/grpc/grpc/issues/36581 Based on our documentation, we should return `grpc.aio.EOF` to indicate the end of the stream:pull/36758/head^2fb6a57b153/src/python/grpcio/grpc/aio/_base_call.py (L166-L178)
But if the call was intercepted, we're raising `StopAsyncIteration`, This Pr changes the return to match the documentation (Which is also the behavior for non-intercepted call). Closes #36660 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36660 from XuanWang-Amos:fix_aio_read_return4b679ba429
PiperOrigin-RevId: 638681673
parent
39afbf49f2
commit
1a96ce7620
3 changed files with 67 additions and 6 deletions
Loading…
Reference in new issue