Skip to content

2.1.1

Choose a tag to compare

@Yonle Yonle released this 21 Mar 15:33
· 143 commits to master since this release

A small speed up and major bugfix for the bouncer code.

What's new?

  • [New] Idle blank session
  • [Note] Removed orwarding client IP address to upstream relay due to usage of idle session.
  • [MajorFix] Fix repetitive EOSE being sent to client even after being paused

Idle session

In this release, bostr will now initialize a blank session which connects to the configured relays first. This idle session will then used for new incomming connection by client, allowing client to be able to interact with relays in a instant.

Back then, bostr only connect to bunch of relays once a client was connected. This does not do much but has some impact on performance, notably some nostr client may not be able to receive certain events from some relays.

This feature works almost similarly to the old orphan session feature. However that approach proved terrible as it reuses previously used session. It could be the ratelimited session, so i ditched it at the beginning.

By default, bostr only initialize 1 blank idle sessions. To configure how many idle sessions to be initialized during startup, Edit config.js and change idle_sessions integer value (Default: 1). It's suggested to initialize more than a single idle sessions in public bouncer.

Upgrading

For npm installation, upgrading could be done with the following:

npm i -g bostr@latest

or

npm i -g https://github.com/Yonle/bostr.git

For source code installation, upgrading could be done with the following:

git pull
npm i

and then restart your bouncer.

Full Changelog: 2.0.10...2.1.1