chenBright commented on issue #1662: URL: https://github.com/apache/brpc/issues/1662#issuecomment-1439334606
> > > 对于baidu这种多发多收的协议,应该需要将存量的回包也迁移到新进程,让新进程来发这些回包,避免新旧进程同时写同一个连接,导致串包的问题。 > > 对于短链接,迁移listenfd之后,存量回包会在旧进程处理,新进程只接收新的connection;长连接connfds会迁移,回包还会继续在相应的connfd回复吧,应该不存在新旧进程同时写一个connfd的问题,长连接迁移的场景比较复杂,目前只支持了简单场景。 长连接场景下,在connfd迁移到了新进程时,还有存量请求处理,而新进程也收到了请求并处理完了,此时新旧进程同时回包,就会有问题。 -- 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]
