[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
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?
 
Reply all
Reply to author
Forward
0 new messages