Commit Graph

408 Commits (7e0e8ab7bf86199eb1dc6a3f8ae46e0393548a07)

Author SHA1 Message Date
Thomas Winget a58a8c9a61 hive.py now defaults to 1000 relays because f your box.
also check for error on uv_async_init...

may want to `ulimit -Sn $(ulimit -Hn)`...
5 years ago
Thomas Winget c8c66f0a5f some refactoring of tooling code, added RCGossipReceivedEvent 5 years ago
Jeff Becker 877443d95c more introspection code 5 years ago
Thomas Winget 931ff521d1 working toward full testnet of routers (not clients yet) in hive/pybind setup
Not working yet -- some sort of RC issue.  Checkout the commit prior to this if you want something that 'works' that you can play with.
5 years ago
Thomas Winget 0f34a950a9 pybind config object, working 5 years ago
Thomas Winget f712acc486 huzzah it builds, time to test soon! 5 years ago
Jeff Becker da79b14703 make it compile 5 years ago
Thomas Winget 8dc5dabe49 working toward compilation, still has include issue 5 years ago
Thomas Winget 8d03e6dd3c more router hive stuff, read below the fold
Router now has a hive pointer if LOKINET_HIVE is set.
llarp::Context has a method InjectHive to give Router the pointer.
Router has a method NotifyRouterEvent which does:
  - when LOKINET_HIVE is set, passes the event to RouterHive
  - else when LOKINET_DEBUG is set, prints the event at a low log level
  - else NOP
5 years ago
Jeff Becker 61ffbc0643
std::vector reserve does not resize 5 years ago
jeff 49e69d7087 remove uneeded code 5 years ago
Jason Rhinelander df7a173649 Shorten version and prefix with v
So we get `v0.7.0` instead of `lokinet-0.7.0-abcdef12`; the latter is
useful for devs, but not so much for random operators (and you can
always go get the full version from the binary).
5 years ago
Jason Rhinelander d5eed90a3c Fix systemd compilation & enable systemd on travis 5 years ago
Jeff Becker 66181d8a8f
systemd status 5 years ago
Jeff Becker bf0416cab8
remove Time_t, add operator overload for printing llarp_time_t and add to_json function for serializing llarp_time_t to json 5 years ago
Jeff Becker d2d109e92c
llarp_time_t is now using std::chrono 5 years ago
Jeff Becker f4520ac920
make decaying hashset use llarp::Time_t and move unit tests to use catch2 5 years ago
Jason Rhinelander 089056ca5b Remove all ABSL_ATTRIBUTE_UNUSED uses 5 years ago
Jason Rhinelander 5c95971335 Make C++ literals available everywhere in `llarp` 5 years ago
Jason Rhinelander f84ce61d66 Removed empty cpp files
These aren't needed: CMake already knows how to follow #includes and
rebuild when headers change as long as the headers are included
*somewhere*.  The extra .cpp files here just require building a bunch of
.cpp files with just header content that we just end up throw away
during linking (since the same things will also be compiled in whatever
other compilation units include the same headers).
5 years ago
Jason Rhinelander b4440094b0 De-abseil, part 2: mutex, locks, (most) time
- util::Mutex is now a std::shared_timed_mutex, which is capable of
  exclusive and shared locks.

- util::Lock is still present as a std::lock_guard<util::Mutex>.

- the locking annotations are preserved, but updated to the latest
  supported by clang rather than using abseil's older/deprecated ones.

- ACQUIRE_LOCK macro is gone since we don't pass mutexes by pointer into
  locks anymore (WTF abseil).

- ReleasableLock is gone.  Instead there are now some llarp::util helper
  methods to obtain unique and/or shared locks:
    - `auto lock = util::unique_lock(mutex);` gets an RAII-but-also
      unlockable object (std::unique_lock<T>, with T inferred from
      `mutex`).
    - `auto lock = util::shared_lock(mutex);` gets an RAII shared (i.e.
      "reader") lock of the mutex.
    - `auto lock = util::unique_locks(mutex1, mutex2, mutex3);` can be
      used to atomically lock multiple mutexes at once (returning a
      tuple of the locks).
  This are templated on the mutex which makes them a bit more flexible
  than using a concrete type: they can be used for any type of lockable
  mutex, not only util::Mutex.  (Some of the code here uses them for
  getting locks around a std::mutex).  Until C++17, using the RAII types
  is painfully verbose:

  ```C++
  // pre-C++17 - needing to figure out the mutex type here is annoying:
  std::unique_lock<util::Mutex> lock(mutex);
  // pre-C++17 and even more verbose (but at least the type isn't needed):
  std::unique_lock<decltype(mutex)> lock(mutex);
  // our compromise:
  auto lock = util::unique_lock(mutex);
  // C++17:
  std::unique_lock lock(mutex);
  ```

  All of these functions will also warn (under gcc or clang) if you
  discard the return value.  You can also do fancy things like
  `auto l = util::unique_lock(mutex, std::adopt_lock)` (which lets a
  lock take over an already-locked mutex).

- metrics code is gone, which also removes a big pile of code that was
  only used by metrics:
  - llarp::util::Scheduler
  - llarp:🧵:TimerQueue
  - llarp::util::Stopwatch
5 years ago
Thomas Winget 74d421ac2d PathBuildNumber -> NextPathBuildNumber because increment side-effect 5 years ago
Thomas Winget fc56a018e5 path builder prints hops, rest print short name 5 years ago
Jason Rhinelander 6a8d4aca38 Fix signed/unsigned comparison warning and make more std::chrono-y 5 years ago
Jeff Becker 837998eb88
rename variable 5 years ago
Jeff Becker 28561cd654
use Time_t 5 years ago
Jeff Becker 96c5553e34
rename variables 5 years ago
Jeff Becker 434ce56553
* get rid of dht explore for service nodes
* add Time_t using std::chrono for future uses
* make decaying hashset constructor with llarp_time_t explicit
* add decaying hashset implicit constructor using Time_t
* add timeouts for gossiper replay
* allow regossip of our RC
5 years ago
Jeff Becker 154be464ea
rc gossiping 5 years ago
Jeff Becker 7ad47f2dba
* get rid of dht explore for service nodes
* add Time_t using std::chrono for future uses
* make decaying hashset constructor with llarp_time_t explicit
* add decaying hashset implicit constructor using Time_t
* add timeouts for gossiper replay
* allow regossip of our RC
5 years ago
Jeff Becker ea3851d15f
rc gossiping 5 years ago
Jeff 1403cff805
Merge pull request #1079 from majestrate/remove-dht-message-limit-2020-02-03
make message queue unbound for direct dht messages
5 years ago
Stephen Shelton bc3184a126
s/LogInfo/LogDebug/ @ explore message 5 years ago
Jeff Becker 80f8363386
don't drop messages with pathid zero which belong to snode to snode dht and path build requests. 5 years ago
Jeff Becker 9efd796145
initial wack at 0.7.0 dht fixes 5 years ago
jeff 816070be62 dont inherit std::array 5 years ago
jeff f728e6016b router version 5 years ago
Jeff Becker b280bac141
don't always use bootstrap when exploring 5 years ago
Jeff Becker 3b66cf6e75
dht fixes, disable iterative lookups on clients, revert "fixes" from 0.6.3, pass in recursion depth from introset lookup 5 years ago
Stephen Shelton fba12093ac
Remove dead code (AbstractRouter::EnsureRouter()) 5 years ago
Jeff Becker 1165466d56
don't deadlock when we want to remove lots of paths, flush queue instead when full 5 years ago
Jeff Becker 12899701c5
inform congestion on tail drop 5 years ago
Jeff Becker 860891b6a6
tail drop 5 years ago
Jeff Becker 4185d47d4b
link layer message priority 5 years ago
Jeff Becker c3f99e1b5c
make format 5 years ago
jeff 79fd08e559
fix typo 5 years ago
jeff 4a761be52d
use std::chrono 5 years ago
Jeff Becker fe148f7823
merge conflict fix 5 years ago
Jeff 493213717f
Merge pull request #1054 from notlesh/message-queue-stats-2020-01-17
Include outbound message queue stats in dumpState API response
5 years ago
Stephen Shelton 3cf4bd8f97
Lookup routers at maximum frequency of 10 minutes 5 years ago