Skip to content

Do not mutate messages used in ServerStream.SendMsg()

Mikhail Mazurskiy requested to merge ash2k/no-msg-reuse into master

When I was writing this code it was not documented that it's not ok to mutate the message after sending it. Docs were added in https://github.com/grpc/grpc-go/pull/5894.

Relates to #393 (closed).

There is code that is mutating messages sent using ClientStream.SendMsg(). I asked if it's ok or not.

Edited by Mikhail Mazurskiy

Merge request reports