-
Notifications
You must be signed in to change notification settings - Fork 2
relocalize #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
relocalize #11
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: Alliance-Algorithm/rmcs-navigation
Length of output: 116
🏁 Script executed:
head -300 src/cxx/util/localization/engine.cc | tail -200Repository: Alliance-Algorithm/rmcs-navigation
Length of output: 7393
🏁 Script executed:
Repository: Alliance-Algorithm/rmcs-navigation
Length of output: 60
🏁 Script executed:
Repository: Alliance-Algorithm/rmcs-navigation
Length of output: 60
🏁 Script executed:
Repository: Alliance-Algorithm/rmcs-navigation
Length of output: 2718
🏁 Script executed:
# Check git log for recent changes to engine.cc git log --oneline -20 src/cxx/util/localization/engine.ccRepository: Alliance-Algorithm/rmcs-navigation
Length of output: 97
🏁 Script executed:
Repository: Alliance-Algorithm/rmcs-navigation
Length of output: 2718
响应回调和超时回调需要统一的请求令牌验证机制。
存在严重的请求生命周期竞态:响应回调捕获的
pending_id初始化为-1,仅在async_send_request(...)返回后才被赋值为真实的result.request_id。若响应回调在赋值前执行,会传入expected_id = -1给Session::end(),而此时Session::pending_id为std::nullopt,导致条件if (expected_id && pending_id != *expected_id)判断为真,end()返回 false,有效响应被静默丢弃。同时,超时回调调用s->end(...)时未传递expected_id,使其总能成功,可在响应完成后覆盖有效状态。需要在
begin()时生成一个会话令牌,令响应和超时两条路径都必须验证该令牌才能更新终态。🤖 Prompt for AI Agents