-
Notifications
You must be signed in to change notification settings - Fork 276
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
Do we care about address length vs message length in circuit-relay? #29
Comments
This should also eliminate the need for the edit: typo |
Fwiw the Go implementation I am working on does not emit any ADDRESS_TOO_LONG messages, because they are not relevant anywhere. For the max message size, it's not explicitly tested either. |
I think a |
@jvican we're not currently sending error messages back, just codes - hence the current 200 vs 300 error code ranges, they signal which leg of the relay broke. |
I think |
This is addressed in the current circuit relay v2 design (libp2p/go-libp2p-circuit#125). Unless anyone objects this can be closed once circuit relay v2 lands in the spec repo. |
Now that we have a proper protobuf spec for the circuit-relay messages, do we care about individual addresses length? It seems like we should restrict the overall size of the protobuf message, but other than that, checking for address length doesn't seem to add any value anymore. @vyzo proposed 4096 as an arbitrary message size, which I think is reasonable.
Given this, lets remove the address length restriction in favor of a message size.
@diasdavid @whyrusleeping @lgierth
The text was updated successfully, but these errors were encountered: