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

make publish() timeout. #452

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Conversation

AsaiToshiya
Copy link
Collaborator

I don't know why, but there are relays (e.g wss://relay.nostr.bg) that does not send an OK message in response to an EVENT message. In that case we wait forever for it and the promise returned by publish() is never resolve/reject.

This PR adds a timeout and solves that problem.

@fiatjaf fiatjaf merged commit d062ab8 into nbd-wtf:master Oct 30, 2024
0 of 2 checks passed
@AsaiToshiya AsaiToshiya deleted the publish-timeout branch October 31, 2024 12:47
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.

2 participants