guodongxiaren commented on pull request #1503:
URL: https://github.com/apache/incubator-brpc/pull/1503#issuecomment-903212675
加上了HTTP
header的dump功能,借助已有的MakeRawHttpRequest函数,service和method都会存储下来,不再单独给sample->meta中的对应字段赋值。
rpc_replay回放的时候,用ParseFromIOBuf解析该dump的内容,可以自动获取service和method。
另外做了Host字段的清空操作,因为允许录制ServerA的流量,回放给ServerB。如果带着原先的Host,可能引发不必要的问题,比如ServerB是一个Web
Apache,会根据Host路由。
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]