guodongxiaren commented on pull request #1503: URL: https://github.com/apache/incubator-brpc/pull/1503#issuecomment-1022992975
> > 另外做了Host字段的清空操作,因为允许录制ServerA的流量,回放给ServerB。如果带着原先的Host,可能引发不必要的问题,比如ServerB是一个Web Apache,会根据Host路由。 > > 感觉这个应该是个可选功能,因为有些场景要求带上原先的Host,不然Server端路由不了,是不是可以加个replay选项? 也可以自己在gflag配置指定:--server=www.abc.com:9999 这个www.abc.com会被拼到Host中。 当然如果www.abc.com指向的经过dns解析出来的机器,不是使用者想要回放的目标机器的时候,需要改下本机hosts文件配置。从这个角度来说,加个新的gflags选项也可以,自己控制是否使用原始host,但完整的Host不止有ip/机器名 也有端口。比如Host: www.abc.com:8888 实际给 另外一个机器的9999端口回放请求。 这个不匹配的端口号,不知道是否会有其他问题。 复杂一点的解法,rpc_replay在保留原Host的时候,再覆盖一下端口号。 @wwbmmm 你觉得呢? -- 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]
