chenBright commented on issue #3132: URL: https://github.com/apache/brpc/issues/3132#issuecomment-3484363153
> 问题总结,因为在发送端产生的recv completion event和send completion event的时机不一致,导致接收端产生回复ACK的时候,send completion event可能还没有产生,所以申请sqe的时候就可能失败。 可以让recv completion event和send completion event的产生时机是一致的,这样能保证接收端回复ACK的时候,发送端一定有send completion event产生。具体修改: > > <img alt="Image" width="1808" height="834" src="https://private-user-images.githubusercontent.com/7091130/508088866-02ecf78a-3b0a-4389-9733-30d18a6fc36f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjIyNDI4MTMsIm5iZiI6MTc2MjI0MjUxMywicGF0aCI6Ii83MDkxMTMwLzUwODA4ODg2Ni0wMmVjZjc4YS0zYjBhLTQzODktOTczMy0zMGQxOGE2ZmMzNmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MTEwNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTExMDRUMDc0ODMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjA0YWFmYzgyNjYzNTk4Nzc1Zjc4MzJlOTE0YjlmMzYwZTVmZDI3NmQ4MGVkMzY2MDllZDkzZjgwM2U3YzY2NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.aP_ceqARnpStu5RYUEuIvSsKYmaHgmRKmr3AFhnY0bM"> @yanglimingcn solicited && signaled send wc完成之前的send wc被server poll到之后ack,client收到的recv cqe,排在signaled send cqe前面,还是有问题吧? -- 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]
