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

pnet: misleading error errShortNonce during ECONNRESET on Read #2970

Open
davidhadas opened this issue Sep 19, 2024 · 1 comment · May be fixed by #2975
Open

pnet: misleading error errShortNonce during ECONNRESET on Read #2970

davidhadas opened this issue Sep 19, 2024 · 1 comment · May be fixed by #2975

Comments

@davidhadas
Copy link

While using a PrivareNetwork (psk) between peers, a general errShortNonce error is returned:
failed to negotiate security protocol: privnet: could not read full nonce
The actual reason for the failure is obscured.

For example, when the connection was reset (probably by the peer) .

As a minimum the original error (ECONNRESET in this case) should be wrapped as part of the retuned error.

@sukunrt
Copy link
Member

sukunrt commented Sep 19, 2024

As a minimum the original error (ECONNRESET in this case) should be wrapped as part of the retuned error.

That makes sense. Want to open a PR?

@sukunrt sukunrt changed the title PrivareNetwork: misleading error errShortNonce during ECONNRESET on Read pnet: misleading error errShortNonce during ECONNRESET on Read Sep 19, 2024
@sukunrt sukunrt added good first issue Good issue for new contributors and removed good first issue Good issue for new contributors labels Sep 19, 2024
@sukunrt sukunrt linked a pull request Sep 23, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants