Commit Graph

3489 Commits (593105a70b0787ca3af1f221c288b98781c520a5)

Author SHA1 Message Date
Jeff abff5c35cb
Merge pull request #1160 from majestrate/dns-rebinding-fix-2020-03-04
add llarp.admin.die rpc call to gracefully kill router
4 years ago
Jeff Becker 99c814e6b0
fix dns rebinding vuln in jsonrpc 4 years ago
Jason Rhinelander 3b0927ce13
Merge pull request #1140 from despair86/cmake-cleanup
some light cmake cleanup for win32
4 years ago
Jason Rhinelander a78a7fbb17
Merge pull request #1158 from majestrate/prune-routers-2020-03-03
Prune non routers from nodedb
4 years ago
Jason Rhinelander 6707037909
Merge pull request #1157 from majestrate/fix-systemd-status-2020-03-03
fix status line
4 years ago
Jason Rhinelander c87fd66386 Fix lookup filter to filter second, not first, lookup 4 years ago
Jeff Becker 08de84d40b
remove non public routers from nodedb 4 years ago
Jeff Becker add305b9f4
use size / 2 as the number of transit paths 4 years ago
Jeff Becker 05082e2507
fix status line 4 years ago
Rick V 4cd7a22ca3
fix libsodium cross compile 4 years ago
Jeff Becker 61ffbc0643
std::vector reserve does not resize 4 years ago
Stephen Shelton 321314b456
Remove re-propagation of introsets when we are wrong candidate 4 years ago
Jeff Becker 32e768d7dd
change log 4 years ago
Jeff Becker d4ccf895e3
Merge branch 'fix-up-introset-lookup-fails-2020-03-02' of ssh://github.com/majestrate/loki-network into fix-up-introset-lookup-fails-2020-03-02 4 years ago
Jeff Becker 79746e3719
remote lookup limiting of 500ms per address 4 years ago
Stephen Shelton 9be8050854
Make format 4 years ago
Stephen Shelton 886a981997
Consolidate introset publishing constants 4 years ago
Jeff Becker a09bb89d15
dont put multiple outbound contexts 4 years ago
Jeff Becker d3f222ddcc
revert relay side dedup parameter 4 years ago
Stephen Shelton bbee45118e
Remove redundant lookup logic from relays 4 years ago
Jeff Becker 158a9018f3
rename variable 4 years ago
Jeff Becker 9ff31f6402
spelling is hard 4 years ago
Jeff Becker 8f4362f092
fix up introset lookups 4 years ago
Jason Rhinelander 806d43c34e
Merge pull request #1147 from notlesh/diagnose-pubintro-round2-2020-02-28
Diagnose pubintro round2
4 years ago
Jason Rhinelander d46a880150
Merge pull request #1145 from majestrate/remove-convotags-right-away-2020-02-27
Remove convotags right away when outbound context dies
4 years ago
Jason Rhinelander b60adc909d Make IntroSet publish confirmed less verbose
Essentially just rate limit the confirmation message to one message per
second.
4 years ago
Jason Rhinelander cfee824a79 Don't republish when we have extra paths
This caused some unwanted behaviour:

- on initial startup we often get two publishes in quick succession
because we're publishing and building paths at the same time

- at the 10m mark we enter a publish loop every 5 seconds because we
have paths with lifetimes < 10min that was triggering this condition,
and yet those paths will never actually be included in the introset
because they are expiring in <10m.
4 years ago
Jason Rhinelander c0eb0c4db4 Avoid unnecessary copy 4 years ago
Jeff Becker 45fa9bebbc
wrong txid 4 years ago
Jeff Becker e3b5fb4dd9
add local publish intro message to send reply down path 4 years ago
Jason Rhinelander 58fe7ac801 De-static constants
We don't need separate copies of these per compilation unit.
4 years ago
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.
4 years ago
Jeff Becker 5b075259e6
revert 4 years ago
Jeff Becker b4a59a0b1a
make format 4 years ago
Jeff Becker dd21cba1fe
dedup via txid not keyspace location 4 years ago
Jason Rhinelander 76608b6b90 Logic simplification 4 years ago
Jason Rhinelander 27b8743107 Add warns for introset publish failures 4 years ago
jeff f76b9f3042 make format 4 years ago
jeff 49e69d7087 remove uneeded code 4 years ago
Stephen Shelton 2ebd9bbd95
Implement PublishServiceJob::SendReply() 4 years ago
Stephen Shelton 638ea2e0fd
Make format 4 years ago
Stephen Shelton d09fd13dd6
Calculate 'candidateNumber' when we should store Introset 4 years ago
Stephen Shelton 37ca564005
Log when DHTSendTo fails @ Router::SendToOrQueue 4 years ago
Stephen Shelton 62014de91c
Handle PubIntro relayOrder logic on client-side 4 years ago
Stephen Shelton 61d19179f7
Remove dead code 4 years ago
Stephen Shelton a8623f09e9
Properly deserialize PubIntroMessages' relayed var 4 years ago
Stephen Shelton c0fbe06c0f
Require 'From' and 'relayed' in PublishIntroMessage ctor 4 years ago
Stephen Shelton f61cd1a7da
Add some notes/comments about DHT message handling 4 years ago
Stephen Shelton 6b906de00d
Judicious removal of dead code 4 years ago
Jeff Becker ce335dc47d
remove convotags on dead outbound context 4 years ago