You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2020/10/15 06:39:19 UTC

[GitHub] [incubator-brpc] guodongxiaren opened a new issue #1265: baidu_std协议。request都是const的,如果我想修改。只能CopyFrom一次request再修改吗?

guodongxiaren opened a new issue #1265:
URL: https://github.com/apache/incubator-brpc/issues/1265


   **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
   我有一个比较大的request。CopyFrom的开销比较大。
   request里面有一个大的队列。现在我想给队列里的元素都做一次预处理。我想对后面处理逻辑透明。只能自己CopyFrom一个新的request。然后让后续的逻辑都解析新request吗?
   
   **Describe the solution you'd like (描述你期望的解决方法)**
   
   
   **Describe alternatives you've considered (描述你想到的折衷方案)**
   
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] guodongxiaren closed issue #1265: baidu_std协议。request都是const的,如果我想修改。只能CopyFrom一次request再修改吗?

Posted by GitBox <gi...@apache.org>.
guodongxiaren closed issue #1265:
URL: https://github.com/apache/incubator-brpc/issues/1265


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] gydong commented on issue #1265: baidu_std协议。request都是const的,如果我想修改。只能CopyFrom一次request再修改吗?

Posted by GitBox <gi...@apache.org>.
gydong commented on issue #1265:
URL: https://github.com/apache/incubator-brpc/issues/1265#issuecomment-708939685


   可以const_cast之后再处理


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] whutbd commented on issue #1265: baidu_std协议。request都是const的,如果我想修改。只能CopyFrom一次request再修改吗?

Posted by GitBox <gi...@apache.org>.
whutbd commented on issue #1265:
URL: https://github.com/apache/incubator-brpc/issues/1265#issuecomment-710740189


   嗯,可以强转获得非const指针 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org