Commit Graph

5315 Commits

Author SHA1 Message Date
Jason Rhinelander
58fe7ac801 De-static constants
We don't need separate copies of these per compilation unit.
2020-03-01 12:40:15 -04:00
Jason Rhinelander
823c17206f Add min intro set paths, slightly increase spread speed
This should ensure that we have enough shortly after startup for initial
path builds.

The spread speed here gets slightly increased to lifetime/5 (=4min)
instead of lifetime/4 (=5min) so that our "normal" number of paths is 5
with occassional momentary drops to 4, but should always keep us >= the
new minimum of 4.

Because the path spread happens over time, this shouldn't result in a
rebuild of several paths: we'll build 4 quickly, then another at +4m,
another at +8m, etc.  When the initial 4 expire, we'll be dropping from
9 to 5 established but that's still above the minimum (4) so we won't
need to reconnect to several at once, and the spread builds should keep
us at 5 all the time.
2020-03-01 12:37:43 -04:00
Jeff Becker
5b075259e6
revert 2020-03-01 11:21:48 -05:00
Jeff Becker
b4a59a0b1a
make format 2020-03-01 11:20:11 -05:00
Jeff Becker
dd21cba1fe
dedup via txid not keyspace location 2020-03-01 11:17:39 -05:00
Jason Rhinelander
76608b6b90 Logic simplification 2020-03-01 11:58:08 -04:00
Jason Rhinelander
27b8743107 Add warns for introset publish failures 2020-03-01 11:48:43 -04:00
Stephen Shelton
2ebd9bbd95
Implement PublishServiceJob::SendReply() 2020-02-28 20:59:24 -07:00
Stephen Shelton
638ea2e0fd
Make format 2020-02-28 17:07:35 -07:00
Stephen Shelton
deac8e74ea
Remove dead unit tests 2020-02-28 17:05:58 -07:00
Stephen Shelton
d09fd13dd6
Calculate 'candidateNumber' when we should store Introset 2020-02-28 17:00:49 -07:00
Stephen Shelton
37ca564005
Log when DHTSendTo fails @ Router::SendToOrQueue 2020-02-28 16:56:35 -07:00
Stephen Shelton
62014de91c
Handle PubIntro relayOrder logic on client-side 2020-02-28 16:45:04 -07:00
Stephen Shelton
61d19179f7
Remove dead code 2020-02-28 16:32:00 -07:00
Stephen Shelton
a8623f09e9
Properly deserialize PubIntroMessages' relayed var 2020-02-28 16:30:10 -07:00
Stephen Shelton
c0fbe06c0f
Require 'From' and 'relayed' in PublishIntroMessage ctor 2020-02-28 16:28:57 -07:00
Stephen Shelton
f61cd1a7da
Add some notes/comments about DHT message handling 2020-02-28 16:26:52 -07:00
Stephen Shelton
6b906de00d
Judicious removal of dead code 2020-02-28 16:26:45 -07:00
Jeff
f293d4d783
Merge pull request #1146 from majestrate/remove-dht-explore-timer-2020-02-27
remove dht explore timer
2020-02-27 11:45:03 -05:00
Jeff Becker
dea78d2326
change function signature for dht context to exclude time parameter 2020-02-27 11:37:23 -05:00
Jeff Becker
7a84bbe459
remove dht explore timer 2020-02-27 11:28:01 -05:00
Stephen Shelton
a0fc71c3e5
Merge pull request #1144 from notlesh/only-limp-tabs-2020-02-26
Remove 'clang-format off' and make format
2020-02-26 14:23:18 -07:00
Stephen Shelton
182057e881
Remove 'clang-format off' and make format 2020-02-26 14:10:26 -07:00
Jeff
8a2e2a58df
Merge pull request #1143 from jagerman/shorter-version-status
Shorten version and prefix with v
2020-02-26 15:20:58 -05:00
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).
2020-02-26 16:16:57 -04:00
Jason Rhinelander
9ed8d2f55a
Merge pull request #1139 from jagerman/systemd-build-fix
Fix systemd compilation & enable systemd on travis
2020-02-25 23:18:50 -04:00
Jason Rhinelander
d5eed90a3c Fix systemd compilation & enable systemd on travis 2020-02-25 22:35:06 -04:00
Jason Rhinelander
8f9cb83f9a
Merge pull request #1138 from jagerman/sucksess
fix speeling mistack
2020-02-25 22:29:47 -04:00
Jason Rhinelander
f1aa27e616 fix speeling mistack 2020-02-25 22:27:34 -04:00
Jason Rhinelander
83fc2c9c04
Merge pull request #1137 from jagerman/fix-cmake-linux-var-1½
if(LINUX) doesn't work; just try to find libsystemd gently instead
2020-02-25 22:23:28 -04:00
Jason Rhinelander
53c85ebf1d if(LINUX) doesn't work; just try to find libsystemd gently instead 2020-02-25 22:19:41 -04:00
Jason Rhinelander
54236cde9d
Merge pull request #1136 from jagerman/fix-cmake-linux-var
Fix cmake LINUX variable around systemd enabling
2020-02-25 22:11:51 -04:00
Jason Rhinelander
b87adab438 Fix cmake LINUX variable around systemd enabling 2020-02-25 22:10:28 -04:00
Jeff
f6acf7f88e
Merge pull request #1135 from jagerman/less-installing
Add EXCLUDE_FROM_ALL to subprojects
2020-02-25 21:04:47 -05:00
Jason Rhinelander
e3bce76a7c Add EXCLUDE_FROM_ALL to subprojects
Prevent `make install` from installing headers/cmake stuff.
2020-02-25 22:00:33 -04:00
Jeff
a8ce76f6e4
Merge pull request #1094 from majestrate/upstream-cname-monkey-patch-dns-2020-02-12
monkey patch upstream dns to rewrite .loki cname answers
2020-02-25 19:55:01 -05:00
Jeff
da780658e1
Merge pull request #1134 from majestrate/systemd-status-2020-02-25
remove uneeded members
2020-02-25 17:50:43 -05:00
Jeff Becker
d50a0149f9
use std::chrono 2020-02-25 17:46:16 -05:00
Jeff Becker
9c30ff7a26
handle snode and clean up codepath for hooked dns 2020-02-25 17:43:08 -05:00
Jeff Becker
e8f262ba1c
disable flawed unit test 2020-02-25 17:43:08 -05:00
Jeff Becker
1d5c712adb
monkey patch upstream dns to rewrite .loki cname answers 2020-02-25 17:43:08 -05:00
Jeff Becker
9d5dbbc0ad
remove uneeded members 2020-02-25 17:37:15 -05:00
Jeff
9dc86372b5
Merge pull request #1131 from majestrate/systemd-status-2020-02-25
Systemd status reporting
2020-02-25 17:35:19 -05:00
Jeff Becker
66181d8a8f
systemd status 2020-02-25 17:32:57 -05:00
Jeff
df69f34338
Merge pull request #1133 from despair86/linux_shit
Linux shit
2020-02-25 17:14:37 -05:00
despair
8a27e3972d
we need XPG7 on netbsd 2020-02-25 15:48:53 -06:00
Linux User
fd23fd6894
32-bit linux patches 2020-02-25 15:48:07 -06:00
Rick V
5295ada917
systemd is linux only 2020-02-25 15:46:37 -06:00
Jeff
6d3493ed72
Merge pull request #1130 from jagerman/systemd-default-on-if-found
Default libsystemd support to enabled if found
2020-02-25 16:26:02 -05:00
Jeff
19a751c41b
Merge pull request #1127 from notlesh/spread-snapp-path-builds-evenly-2020-02-24
Spread snapp path builds evenly
2020-02-25 16:25:47 -05:00