[grpc-go] time-sequence of recv ands.cancel by timeout server-stream client
17 views
Skip to first unread message
Zeymo Wang
unread,
Jun 7, 2017, 10:19:06 AM6/7/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grpc.io
Server-stream client which `mc.Timeout > 0` , accompanied by `tailer` (status and message) coming, frame reader will finsh stream and invoke s.canel() which pass by context.WithTimout(ctx,mc.Timeout),but caller maybe reading data in `receiveBufferReader` will return err as `context cancel` and break `Recv()` .How dose timeout client guarantee two operation in correct time-sequence?