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

mod unknown method #38

Open
wants to merge 1 commit into
base: new-index
Choose a base branch
from

Conversation

fujicoin
Copy link

Some people access the electrs server using the unknown method, which is obsolete in electrum. It's unclear if this is due to a very old wallet or a homebrew application.
Currently, the unknown method is treated as an error and the peer is disconnected. But these peers reconnect every 10 seconds or every minute.

thread 'acceptor' panicked at 'accept failed: Os { code: 24, kind: Other, message: "Too many open files" }', src/electrum/server.rs:660:56

There seems to be something wrong with the error handling. However, I think there is also an idea that access by unknown method is not processed as an error.
This proposal simply returns a message for access using the unknown method. This drastically reduced the occurrence of "ERROR".

junderw pushed a commit to junderw/electrs that referenced this pull request Dec 12, 2023
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 this pull request may close these issues.

1 participant