Jeff
9765eeee7e
handle edge case better
...
when our path is fine but the recipiant's path on the pivot router isn't we should pivot to another router
2 years ago
Jeff
af041cfee4
try not to spam builds
3 years ago
Jeff
1846c3e3d8
prevent bizare half open state. ( #1754 )
...
* attempt path timeout bullshittery fix
* make sure ServiceInfo always has its address set up
* do not copy intros in constuctor, ammend logging and
add assert
3 years ago
Jeff Becker
e7ac0f3902
expunge outbound contexts that have not gotten inbound traffic for a long while
3 years ago
Jeff Becker
abd6e4c558
use weak_ptr instead of bare pointer to prevent use after free
3 years ago
Jeff Becker
3ad59105ef
when an outbound context is "marked bad" we want to ignore any new paths.
...
before this commit when a new path was made when an outbound context marked bad lokinet would segfault.
3 years ago
Jeff Becker
67f8a7116f
if we get a discard message from the pivot discard the outbound context if the remote intro is also expired
3 years ago
Jeff Becker
3393b5a5a7
make it so lookups dont time out
3 years ago
Jeff Becker
b5efb8c604
rename local variable to be clear about meaning, add comment
3 years ago
Jeff Becker
1a0e6a7ac1
remove redundant check as ReadyToSend also checks IntroSent()
3 years ago
Jeff Becker
d45f0f8951
value initialize introduction so that expiresAt defaults to zero
3 years ago
Jeff Becker
9f353238af
ReadyToSend also should include checking we have a path to the remote
3 years ago
Jeff Becker
963250c0ef
format
3 years ago
Jeff Becker
00d4942d85
more
3 years ago
Thomas Winget
7f9a60066b
make sure we have a path to the next introduction we want to use
3 years ago
Jeff Becker
d9cae4a6c6
in outbound context, ShouldBuildMore intro.ExpiresSoon delta is too big and has no overlap, change it so that
3 years ago
Jeff Becker
e48feb8b9a
kill outbound context when we remove our convotag
3 years ago
Jeff Becker
ce7643a3aa
remove case that spams build on an outbound context
3 years ago
Jeff Becker
c97fe4aa96
convert magic number to where it came from
3 years ago
Jeff Becker
e2bdf8792b
typofix
3 years ago
Jeff Becker
c2722be81c
this fixes the shit wtf
3 years ago
Jeff Becker
0096bd4e35
account for path latency in introset lookups on outbound contexts
3 years ago
Jeff Becker
e4ed53224c
use weak_ptr on a path to reference its parent pathset instead of a bare pointer so crashes dont happen
3 years ago
Jeff Becker
c6660dd6c1
add path aligntment timeout to send and connect timeouts on outbound context to reduce the chance of timing race conditon
3 years ago
Jeff Becker
0f1e806155
don't kill outbound context after build or lookup fails
3 years ago
Jeff Becker
220b8837da
delay setting sentIntro by the advertised latency of the remote intro instead of static value
3 years ago
Jeff Becker
c5a86a49a3
defer ready to send state until after we send a handshake
3 years ago
Jeff Becker
40a189a9a3
log drop events more
3 years ago
Jeff Becker
a94c100e7b
improve log messages about expiring convotags
3 years ago
Jeff Becker
8dd1358cc6
* tweak introset handover timeouts
...
* introset path haodver tweaks
* improve warn/error messages to convey more information
* dont block on queue insertion
* reset convotag on decrypt/verify fail
* add multiple ready hooks on outbound context
* lookup introsets from close routers on dht
* continue to tick dead sessions so they expire their paths
* introset spacing
* reduce lns lookup diversity requirement for speed
* add a function to send reset convotag message
* only have 1 outbound context at a time
3 years ago
Jeff Becker
9a1a022d62
add relayOrder awareness to introset lookups.
...
* only propgate fail when relay order is non zero as zero relay order often fails
3 years ago
Jeff Becker
b1d30f9803
updates to lokinetmon
...
* add introset inspector mode
* add required parts for introset insecptor mode to rpc introspection
3 years ago
Jeff Becker
f172db75c5
don't defer call to ready hook with timer call it right away because we are ready
3 years ago
Jeff Becker
432e7f2a5a
update introset if we get a discard message from a possibly expired intro
3 years ago
Jeff Becker
970ccfcd4e
send a keep alive to keep an idle session alive so it doesn't get removed
3 years ago
Jeff Becker
38cc130dc3
shift off bad intros when we get a discard message, this happens if the
...
other side's intro expires or the pivot restarts for whatever reason.
3 years ago
Jeff Becker
d3d929efa7
fixups in service endpoint
...
* increase publish introset timeout so that it does not time out on the network
* remove pedantic log warn
* make sure the path we are using for replying on inbound sessions is alive
* include convotag in log message so we know wtf is going on
* appease tom's autism, improve log message text
3 years ago
Jeff Becker
f9fe6f7e3b
consmetic fixes
...
* print names in lookup jobs instead of yyyyyy
* update syntax in construction of objects
3 years ago
Jeff Becker
b31a484bc9
fix up outbound session
...
* prevent introset lookup spam
* change return values to void becuase bool doesn't mean fucking shit at all
3 years ago
Jeff Becker
fedc56e3f1
initial commit for #1595
3 years ago
Jeff Becker
5b05d22bad
refactors
...
* add path sequence numbers on routing messages
* reduce log level in debug mode
* wire up loopback style sending to ourself
3 years ago
Jeff Becker
59c9e997f2
build paths faster and limit path builds at edge router instead of via a time counter for all edges
3 years ago
Jeff Becker
100a953a23
make the lokinet endpoint code work
...
still needs the quic sides to work
3 years ago
Jeff Becker
7098f46d60
rpc endpoint for triggering quic tunnel
3 years ago
Jeff Becker
9d483a12db
* add protocol type to snode traffic
...
* make path::PathSet::SendPacketToRemote know about protocol type
3 years ago
Jeff
cb2254ba46
Merge pull request #1573 from jagerman/more-code-refactors
...
More code refactors
4 years ago
Jeff Becker
1acea95ced
fix issue #1562
...
* use csrng for std::shuffle
4 years ago
Jason Rhinelander
0339bd941a
Convert protocol type to enum class
4 years ago
Thomas Winget
7caa87862e
standardize include format and pragma once
...
All #ifndef guards on headers have been removed, I think,
in favor of #pragma once
Headers are now included as `#include "filename"` if the included file
resides in the same directory as the file including it, or any
subdirectory therein. Otherwise they are included as
`#include <project/top/dir/relative/path/filename>`
The above does not include system/os headers.
4 years ago
Jason Rhinelander
91d6698a9d
Reformat with clang-format-11
4 years ago