-
Notifications
You must be signed in to change notification settings - Fork 1k
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 : 'Hop' spec supports zero limit, but the impl does not #5170
Comments
Interesting. I've looked over the relay spec so many times and i somehow overlooked this part. Should be a simple change internally. Likely more in |
I simply set |
Have you got the PR working on? I would like to take this if you don't mind. @RustMania |
Description
Hello, I m strugglinhg to establish connections to a relay, where limits are not applied.
I m not quite sure whether this is a bug or a wrong API usage, so that I post it to the enhancement category.
According to the spec relay-2.0:
To establish long-lived connections w/o data limits my relay app sets default values for these , max_circuit_bytes and max_circuit_duration, before the swarm is initialised. However setting them to zeros does not negotiate "no limit" condition. E.g. setting the duration to zero causes the relay to open the connection and close it instantly with a timeout error.
The obvious workaround is to set these values to high limits ( and it works), however such cornering is impractical in production cases.
Motivation
see above
Current Implementation
see above
Are you planning to do it yourself in a pull request ?
Yes
The text was updated successfully, but these errors were encountered: