Learning nostr-tools #nostrdevs
OK so I figured out why my request for 20 kind 3 contact list events from 2 relays was returning more results when I kept the connection open instead of unsubscribing on EOSE
nostr-tools SimplePool when configured to unsub on EOSE will unsub when either
1) all relays have returned EOSE
2) a timer which starts from the start of the subscription expires
The timer is set by default to 3.4 seconds
So the connection will terminate after 3.4 seconds even if events are still streaming in
Configuring the timer to 10 seconds fixed it for this request
I guess the timer is for when relays don't return EOSE when they reach the end of their stored events
Wondering wouldn't it be better to restart the timer as each event comes in?
And maybe an option to disable it