Skip to content

Fix cross-type duplicate agent name bug (clause ordering)#9

Merged
leondavi merged 1 commit intomasterfrom
v0.2.2
Apr 13, 2026
Merged

Fix cross-type duplicate agent name bug (clause ordering)#9
leondavi merged 1 commit intomasterfrom
v0.2.2

Conversation

@leondavi
Copy link
Copy Markdown
Owner

TCP registration's first clause matched HTTP agents via session_pid=OldPid (binding undefined), then is_pid(undefined) returned false, allowing silent overwrite. Swapped clause order so HTTP/stateless agents are detected first by session_type and checked against ETS_HTTP_SESSIONS for liveness.

Added 2 cross-type duplicate name tests (108 total, 0 failures).

TCP registration's first clause matched HTTP agents via session_pid=OldPid
(binding undefined), then is_pid(undefined) returned false, allowing silent
overwrite. Swapped clause order so HTTP/stateless agents are detected first
by session_type and checked against ETS_HTTP_SESSIONS for liveness.

Added 2 cross-type duplicate name tests (108 total, 0 failures).
@leondavi leondavi merged commit 5123164 into master Apr 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant