Commit Graph

5316 Commits (e3b5fb4dd9a2a8a5821db5ca86f2d54af0c77e26)
 

Author SHA1 Message Date
Jeff 19a751c41b
Merge pull request #1127 from notlesh/spread-snapp-path-builds-evenly-2020-02-24
Spread snapp path builds evenly
5 years ago
Jeff 4f29405e9e
Merge pull request #1115 from majestrate/handle-multiple-responses-per-lookup-2020-02-20
handle multiple responses per hidden service lookup
5 years ago
Jason Rhinelander 51ef8d69f8 Default libsystemd support to enabled if found
WITH_SYSTEMD=ON or =OFF works to explicitly enable/disable, but if
omitted the default is now ON if found and OFF if you don't.
5 years ago
Stephen Shelton abe4015986
Use constants for path build timing 5 years ago
Stephen Shelton 230037b9f3
Increase default path timeout from 10min to 20min 5 years ago
Stephen Shelton f0374eb2b7
Use existing 'lastBuild' var for spacing path builds 5 years ago
Stephen Shelton c2c010dbad
Make format 5 years ago
Stephen Shelton c1b5e453c7
Big I, little i, what begins with I? 5 years ago
Stephen Shelton 1db6c6ae3b
Make format 5 years ago
Stephen Shelton c2f719c996
Build endpoint paths at even[ish] intervals 5 years ago
Jeff a8a6c175fc
Merge pull request #1128 from majestrate/use-std-chrono-2020-02-24
make llarp_time_t use std::chrono::milliseconds
5 years ago
Jeff 9868c400a4
Merge pull request #1129 from jagerman/string_view-cpp17
Fix string_view C++17 compatibility
5 years ago
Jason Rhinelander 63d2abbb00 Another gcc 5 compat fix (plus small optimization) 5 years ago
Jason Rhinelander 04c618ddae gcc 5 compatibility workaround 5 years ago
Jeff Becker 368acec485
fix last commit 5 years ago
Jeff Becker b2181f2449
reduce code use 5 years ago
Jeff Becker fdcd19662f
remove trailing "ms" 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 ecdab10dac
explictly use std::chrono::milliseconds 5 years ago
Jeff Becker df427ffa0e
use llarp_time_t instead of auto 5 years ago
Jason Rhinelander 3bd400f6fe Fix string_view C++17 compatibility
string_view was implicitly convertible to std::string, but
std::string_view is only explicitly convertible.  This makes the
`operator std::string` explicit to be more compatible, and re-adds a
bunch of explicit string casts to the code where needed.

(This also fixes the build if changing the standard to c++17)
5 years ago
Jeff Becker 524726e4cc
cast interval to std::chrono::milliseconds before dividing by 4 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
Jeff Becker 39cdc9e6dd
shift intro on introset update 5 years ago
Jeff 1e96347981
Merge pull request #1124 from jagerman/deabseil-finale
De-abseil finale: no more abseil
5 years ago
Jason Rhinelander f976ebbe49 make format 🤦 5 years ago
Jason Rhinelander 05b95dd6d4 Disable memory sanitizer build
It doesn't currently work for either test suite: we get a
`MemorySanitizer: use-of-uninitialized-value` immediately from both test
suites, with what looks like catch2 or gtest internals.

So just disable it for now.
5 years ago
Jason Rhinelander 55acec80ec Disable thread annotation when not under libc++
They are fairly useless under stdlibc++ because it doesn't have the
required annotations on stl mutexes and locks, so we just get tons of
useless warnings.
5 years ago
Jason Rhinelander 84186ce0b8 Always pass XSAN to cmake 5 years ago
Jason Rhinelander 3be0766f27 Bump XSAN build to bionic and add status message 5 years ago
Jason Rhinelander 18a2444c50 Add gcc5 workaround for catch2 GENERATE(table
stdlibc++'s before v6 erroneously have the tuple constructor as
explicit, which causes the initializer lists here to fail.
5 years ago
Jason Rhinelander 27025030ce Renamed uint128.h -> uint128.hpp 5 years ago
Jason Rhinelander 3fedd5ba6b Avoid wrong-order initialization on big endian 5 years ago
Jason Rhinelander 2093f94244 Make uint128_t use big/little endian layout internally
Thus if someone wants to memcpy out of it it will have the expected
endianness of the internal data.
5 years ago
Jason Rhinelander 454abb4f9f Avoid copies in mutators
Reimplement operators in terms of mutators, rather than vice versa, so
that mutators don't have to make a copy.
5 years ago
Jason Rhinelander 4207a7cfa3 Rewrite In6ToHUInt to be endian agnostic 5 years ago
Jason Rhinelander 1232f34f90 Rewrite generate expressions to make clang-7 happy 5 years ago
Jason Rhinelander dba3ff7fd3 gcc 5.x string_view workaround 5 years ago
Jason Rhinelander 0839c16f19 Final abseil purge
Bye-bye Google Boost.
5 years ago
Jason Rhinelander 5ce6c01476 Don't use double-underscores
double-underscore names are reserved for the compiler/STL.
5 years ago
Jason Rhinelander 4338e38cd6 Remove old vendored ghc-filesystem
We aren't using this anymore; this should have been deleted in the
switch to submodules.
5 years ago
Jason Rhinelander 5fcc11f2bf Fix format 5 years ago
Jason Rhinelander 5d1230d7c9 constexpr string_view fixes
Pre-C++17 char_traits::compare isn't constexpr so we can't constexpr the
find/rfind methods that use it.

begin() etc, however, can be constexpr (and need to be for some of the
other constexpr methods here that use them).
5 years ago
Jason Rhinelander 46242ba69b TrimWhiteSpace -> TrimWhitespace
Fix my dumb initial capitalization choice.
5 years ago
Jason Rhinelander 74d4afad51 Remove metric config parsing 5 years ago
Jason Rhinelander 54186c4a89 Replace absl string_view with string_view from lokimq
When we add loki-mq has a dependency we can just alias it, but for now
it's easier to copy the header than add the whole submodule library.
5 years ago
Jason Rhinelander 089056ca5b Remove all ABSL_ATTRIBUTE_UNUSED uses 5 years ago
Jason Rhinelander 5fd830bc36 Prettify uptime duration in log lines
Produces strings such as:

    [+1h09m12.475s]

instead of:

    [+4152475 ms]
5 years ago
Jason Rhinelander 2e9840ea39 Replace abseil date code with Hinnart's date.h
Howard Hinnart's date.h is the library that was accepted as C++20
date/calendar support, so this is essentially a backport of C++20 date
time support.

(It does support timezone support, but requires more of the library and
that seems like overkill for what we need; this just prints UTC
timestamps instead, which need only a header-only include).
5 years ago