Repository navigation
Stop exporting a stale dialled URL to the stream hooks - #42
Merged
Merged
Conversation
SENDSPIN_SERVER_URL is documented as the URL this run dialled, but -s leaves the inbound listener up, and the library reports that a connection is up without saying where it came from. Once any dial had been attempted, a server that dialled in afterwards produced a stream whose hooks exported the URL of that earlier attempt -- a URL with no relation to the connection the stream arrived on (refs #34). The dial is now remembered together with what can contradict it. Losing the connection forgets it: whatever the URL described is gone, and no answer beats a stale one. A discovery dial also knows which server_id it dialled -- the mDNS instance label is the protocol server_id, the same equality the remembered-server preference stands on -- so its URL is exported only when the stream arrived from that server. A literal -s URL still cannot be verified against the connection; ruling that case out needs the library to name the live connection's origin, which nothing it exposes today can.
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.
SENDSPIN_SERVER_URL is documented as the URL this run dialled, but -s leaves the inbound listener up, and the library reports that a connection is up without saying where it came from. Once any dial had been attempted, a server that dialled in afterwards produced a stream whose hooks exported the URL of that earlier attempt -- a URL with no relation to the connection the stream arrived on (refs #34).
The dial is now remembered together with what can contradict it. Losing the connection forgets it: whatever the URL described is gone, and no answer beats a stale one. A discovery dial also knows which server_id it dialled -- the mDNS instance label is the protocol server_id, the same equality the remembered-server preference stands on -- so its URL is exported only when the stream arrived from that server. A literal -s URL still cannot be verified against the connection; ruling that case out needs the library to name the live connection's origin, which nothing it exposes today can.