9 Commits

Author SHA1 Message Date
Adin Schmahmann
42addc4c24 fix(test): increase timeout for notification tests since it's slow on Windows 2020-03-23 01:59:57 -04:00
Aarsh Shah
45c403c1bc document test failure 2020-03-17 22:39:56 +05:30
Aarsh Shah
fbb1b3668a RT connectivity changes 2020-03-10 14:51:28 -07:00
Adin Schmahmann
c24a52fc7c
Enable switching DHT between client and server modes (#469)
* created Mode(ModeOpt) option for choosing between auto/client/server modes
* Auto mode internally switches the DHT between client and server modes based on the EvtLocalReachabilityChanged event emitted on the event bus (e.g. by AutoNAT)
* routing table management of peers that switch between client and server mode while we are connected to them (i.e. are in auto mode)
* removed Client(bool) option, becoming a DHT client is specified using Mode(ModeClient) instead
2020-03-06 14:56:03 -05:00
Adin Schmahmann
5d313b134c Utilize identify events to add peers to the routing table (#472)
* feat: consume identify events to evaluate routing table addition
* fix: routing table no longer gets an update just because new messages have arrived or been sent
* fix: add already connected peers into the routing table before listening to events

Co-authored-by: Raúl Kripalani <raul.kripalani@gmail.com>
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
2020-03-04 22:26:30 -08:00
Raúl Kripalani
31765355df
migrate to consolidated types. (#344) 2019-05-26 23:33:15 +01:00
Matt Joiner
c06aea3c14 Reduce aggressive test
Doesn't pass in time with race detector enabled.
2019-01-31 10:17:34 +11:00
Steven Allen
6ec48e921a don't assume that routes are removed immediately after close
We may fire notifications asynchronously. Well, we have to, really. We'd like:

1. Begin Open
2. Open Notifications
3. End Open
4. Begin Close
5. Close Notifications
6. End Close

However, this breaks if we allow open notifications to close connections (which,
IMO, we want).
2018-03-14 14:06:23 -07:00
Steven Allen
9c55f683c6 notify: add test cases 2017-07-27 14:52:44 -07:00