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

Relay connection gets unstable after session restart #118

Open
Pleb5 opened this issue Feb 18, 2025 · 2 comments
Open

Relay connection gets unstable after session restart #118

Pleb5 opened this issue Feb 18, 2025 · 2 comments
Milestone

Comments

@Pleb5
Copy link

Pleb5 commented Feb 18, 2025

Symptoms:

  1. Seemingly random events(eg calendar, message, reply, thread, rooms, owner notes) not loading from relay (they do seem to load from indexedDB cache). Checked relay events and they are there, app just does not fetch them sometimes
  2. Posting is unreliable (multiple failures on retries)
  3. New events don't load either (subs dont work with community relay but other relay connections seemed to work fine mostly)
  • Reproduce: Problems appear always after browser session restart: closing and reopening tab, refresh page, interaction after timeout
  • Relay auth seems to complete fine
  • Does NOT seem to depend on session method (nip07 with nos2x chrome / nip46 with amber tested)
  • Does NOT seem to depend on setMaxListeners() event emitter function (the app stays responsive while just things are not loading)
  • There are times when after waiting 10-20 minutes it's suddenly fixed
@staab staab added this to the 0.3.0 milestone Feb 19, 2025
@staab
Copy link
Contributor

staab commented Feb 19, 2025

This unfortunately is probably deep within the bowels of the networking code. I've been thinking about re-working this for a while. The time may soon be upon us.

@Pleb5
Copy link
Author

Pleb5 commented Feb 19, 2025

I pulled in latest changes both from welshman and flotilla.
The issue persists but event emitter subs seem to be kept in check now.
Winning slowly but steadily

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