Repository navigation
Conversation
Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com> Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com> Co-authored-by: Codex <codex@openai.com>
Signed-off-by: Josh <39366189+M-Colley@users.noreply.github.com> Co-authored-by: Codex <codex@openai.com>
behrisch
force-pushed
the
codex/sumo-7940-traci-client-protocol-version
branch
from
December 5, 2026 03:14
4337511 to
cfc16f3
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add
traci.getClientVersion()to the Python client. Duringstart()andinit(), warn at the caller when the version reported by the server differs from the client's. Reuse the existing version query. If the caller promotes the warning to an error, close and reap the new connection before selecting it.Fixes #7940.
Evidence
A stock SUMO socket server reported protocol 22 while the regression set the client's expected version to 21. Upstream main supplied no warning. The patched client passed the default and mesoscopic regressions, plus the tracing, transport recovery, and multi-connection controls. A direct
init()check verified the warning location, resulting label, and returned server version.Merge Danger
The Python client now reports a warning on version mismatch. Compatible connections keep their existing return value and selection behavior.