Hi
Eugene Ostroukhov!
Thanks for the response. Is there an example of this: "const request may be pointing to some internal buffer and might be overridden or freed when the code does not expect that"?
> gRPC is very careful with the memory so the memory location in that const request may be pointing to some internal buffer and might be overridden or freed when the code does not expect that
The framework shares a shared_ptr to the request and since it is shared ownership can the grpc framework do intrusive operations?
I am more worried about the fact that if we take ownership, can it cause some corruption later on when the use_count of the pointer becomes 1 and the framework is the only one holding reference to the shared_ptr of request. This will happen once the application later has processed the request
This is important for us because this const leads to memory copy as we transfer data using unary RPCs.