Skip to content
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

What is E_DIAL_REFUSED for in autonat? #427

Closed
achingbrain opened this issue Jul 16, 2022 · 3 comments
Closed

What is E_DIAL_REFUSED for in autonat? #427

achingbrain opened this issue Jul 16, 2022 · 3 comments

Comments

@achingbrain
Copy link
Member

The autonat protocol contains a E_DIAL_REFUSED status but it's not mentioned anywhere in the spec body.

When would you send it or expect to receive it?

@MarcoPolo
Copy link
Contributor

I believe it is for when the other end refused to dial the given address (didn’t make an attempt) vs it dialed and errored. There are a couple reasons why it would refuse, I think the spec mentions a couple but it’s probably not exhaustive.

I think it makes sense to add this to the spec.

A related issue here: #411

@achingbrain
Copy link
Member Author

Ok, great - I was looking for the case where you tell me to dial an address on a transport that I don't support, I shouldn't tell you it errored, I should tell you I can't help out and you should ask someone else. Sounds like this is it.

I'll PR the spec to add this.

@achingbrain
Copy link
Member Author

PR is here: #430

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

No branches or pull requests

2 participants