Satswalker / nostr_dart

A Nostr client library written in Dart
MIT License
1 stars 0 forks source link

Timeout exception while receiving events from a subscription request #7

Closed Satswalker closed 1 year ago

Satswalker commented 1 year ago

While retrieving events I'm seeing "No response from [url]" log message even while events are being received.

Satswalker commented 1 year ago

Sending messages to individual relays is an asynchronous operation that uses a Completer to complete the operation when the relay has finished processing the message (i.e. nostr_dart receives a Command Result in response to sent events, or an EOSE notice in response to subscription requests). The Completer used has a timeout of 5 seconds which is obviously too short when a subscription returns a large number of events.

Satswalker commented 1 year ago

Fixed by #8