yanglimingcn commented on issue #1664: URL: https://github.com/apache/incubator-brpc/issues/1664#issuecomment-1130940828
> > 没有,都是同步的rpc,core这个服务就是一个后端的server,不会再调用其他server了,里面的一些函数打印了一些span信息。 但是这个server的处理行为大概有这样的场景,A协程如果正在处理,B协程进来发现A协程占用这资源,B就会把请求放到一个链表List里面,之后B就退出了,但是B没有做请求的应答。等A协程处理完请求并且应答完了,A会从链表List里面拿到B的请求处理并且做应答。这样的行为也类似于异步调用了server端的done->Run()了。 > > ”B就退出了“,这里的”退出“是指什么?结合这里的上下文,我理解是把B处看到的请求、controller、done之类的都放在那个List里,之后A处拿出来处理一番?这样其实就是异步了。 是的B将controller done request response 放到List,然后自己就结束了执行流程。这个请求会被A从List里面取出来处理。 -- 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]
