-
Notifications
You must be signed in to change notification settings - Fork 279
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
Relay v1 error codes: 2xx vs 3xx distinction #25
Comments
Note that I am using the deduplicating prefixes from #24 for the error codes. |
Reasons we might want this:
Reasons we might not want this:
|
It is arguable whether there is any benefit to debugging in distinguishing the host that failed the address error check. On the negative side, it also adds implementation complexity: implementations need different error reporting paths for their address checking code in order to report the correct error code. And there is also the conceptual complexity, as we have 4 otherwise identical error codes we have to explain their semantics and justify their existence (I am a big fan of minimality in protocol specification). |
I tend to agree with this point, does it matter which host failed the address check? As long as its caught and reported back to the I need to check the spec again, but I don't think the |
@diasdavid @whyrusleeping @lgierth wanna chime in on this one? |
I think i'm okay with not differentiating between address too long and invalid multiaddr. And i agree with @vyzo that we probably dont need to distinguish between this error coming from hop or stop, you should generally be able to infer this from the context in which you received the error. We can probably drop these down to just two error codes? |
@whyrusleeping 👍 on dropping error codes. |
@vyzo do I understand correctly that circuit relay v2 addresses this issue offering neither of the |
The current protocol specifies two families of 2xx and 3xx error codes for address error:
Why is the distinction between HOP and STOP address errors important and even desirable?
It is arguably the same error, and shouldn't matter which hop it originated from.
The text was updated successfully, but these errors were encountered: