Commit Graph

2247 Commits

Author SHA1 Message Date
Jeff
f144c25620
Merge pull request #526 from michael-loki/context_json_metrics
Make JSON metrics opt-in
2019-04-16 20:07:12 -04:00
Rick V
4ca60e65a4
when SunOS 4.x/Sun386i compatibilty was yanked,
some of the more useful functions graduated to the main libc
2019-04-16 16:03:23 -05:00
Jeff
88c2e73ab0
Merge pull request #525 from majestrate/master
fix dht and exit paths
2019-04-16 15:41:36 -04:00
Jeff Becker
88abe28cc1
add dead checking on exit paths 2019-04-16 15:39:58 -04:00
Jeff Becker
0906888bff
fix findrouter 2019-04-16 14:55:47 -04:00
Jeff
b3576af937
Merge pull request #524 from majestrate/master
fix gotrouter handling
2019-04-16 14:07:20 -04:00
Jeff Becker
5938cec770
fix gotrouter handling 2019-04-16 14:06:12 -04:00
Jeff
bfdbf634dd
Merge pull request #523 from majestrate/master
recent stability pokes
2019-04-16 13:55:10 -04:00
Jeff Becker
05dc2fb679
decay profiles unconditionally 2019-04-16 13:30:07 -04:00
Jeff Becker
76c5601894
decay profiles faster 2019-04-16 13:27:35 -04:00
Jeff Becker
66432afdda
proper explore for clients 2019-04-16 13:00:24 -04:00
Jeff Becker
524bed9d9b
move async bootstrap insertion 2019-04-16 12:50:47 -04:00
Jeff Becker
90e92c66c2
insert bootstrap nodes into nodedb and explore more 2019-04-16 12:44:51 -04:00
Jeff Becker
92d0a7083c
dht exploration implicitly makes a session so don't make more 2019-04-16 12:35:58 -04:00
Jeff Becker
87ff9268da
if a router is connected it's fine given it's a boostrap 2019-04-16 10:43:12 -04:00
Jeff Becker
d5161d3d9a
i hate profiling 2019-04-16 10:36:03 -04:00
Jeff Becker
9503cc66f0
add disk worker based file flusher logger
make format

remove package.json
2019-04-16 09:20:48 -04:00
Jeff Becker
a45d6db0e0
better profiling 2019-04-16 07:44:55 -04:00
Michael
fb0f08ec01
Make JSON metrics opt-in 2019-04-16 02:26:08 +01:00
Michael
fdc4b9c4bd
Remove debugging abort from jsonpublisher 2019-04-16 02:21:09 +01:00
Rick V
85f8f71684
windows headers are lowercase on unix 2019-04-15 20:08:29 -05:00
Michael
ae341b40fd
fixup! MetricTank metric collector 2019-04-14 18:29:35 +01:00
Michael
afa058c4ee Fix build on windows 2019-04-14 18:12:11 +01:00
Michael
9bc501bbf7 Integrate metric tank into build 2019-04-14 17:18:32 +01:00
Michael
3b5d49e0f8 MetricTank metric collector 2019-04-14 17:18:32 +01:00
Michael
544c5f9b61 Move metrics publishers to their own directory 2019-04-14 17:18:32 +01:00
Jeff Becker
e41bec4247
Merge branch 'master' of ssh://github.com/majestrate/loki-network 2019-04-14 07:27:36 -04:00
Jeff
5834607997 * don't ban bootstrap nodes with profiling
* less vigorous profiling timeouts
* async remove rc from disk
2019-04-14 07:25:15 -04:00
Jeff Becker
c838048629
Merge remote-tracking branch 'origin/master' 2019-04-13 12:46:15 -04:00
Jeff
7a83f71713 re-animate paths 2019-04-13 10:32:07 -04:00
Rick V
4a6b617d0d
refactor sun evloop 2019-04-12 19:54:20 -05:00
Jeff
a1cb367eca
Merge pull request #515 from majestrate/master
dont stomp existing convotags
2019-04-12 14:38:24 -04:00
Jeff Becker
cab85b8f85
dont stomp existing convotags 2019-04-12 14:37:43 -04:00
Jeff
b25b84e672
Merge pull request #514 from majestrate/master
fix integration tests
2019-04-12 11:32:07 -04:00
Jeff Becker
c26145f70e
* fix up integration tests
* make recursive router lookup backtrack
2019-04-12 11:29:48 -04:00
Jeff
21fb88a211
Merge pull request #513 from majestrate/master
remove RR answer in reply when doing nxdomain
2019-04-12 11:27:40 -04:00
Jeff Becker
f8edd3fbce
fix compiler warning 2019-04-12 11:26:20 -04:00
Jeff Becker
fadf519029
don't give extra record on end when nx 2019-04-12 11:19:51 -04:00
Jeff
2b80214c61
Merge pull request #512 from majestrate/master
add trailing newline
2019-04-12 09:41:54 -04:00
Jeff Becker
609a4ec107
add trailing newline 2019-04-12 09:41:25 -04:00
Jeff
d253d9b05c
Merge pull request #511 from majestrate/master
address #510
2019-04-12 08:20:58 -04:00
Jeff Becker
3aa0cc9d0b
address issue #510 2019-04-12 08:20:03 -04:00
Jeff Becker
5861f4aafa
* less vigorous profiling
* don't spam connections to bootstrap
2019-04-12 08:05:43 -04:00
Rick V
d887004d99
fix warning 2019-04-11 11:32:10 -05:00
Rick V
7036dd1756 freebsd has this too; 2019-04-11 16:10:52 +00:00
Rick V
a9181e27a4 fix non-linux 2019-04-11 16:07:41 +00:00
Rick V
9a24c46aa6
move these into a read-write data segment 2019-04-11 10:53:21 -05:00
Jeff Becker
9a6d894421
Merge remote-tracking branch 'origin/master' 2019-04-11 11:36:42 -04:00
Jeff Becker
5399b93270
make format and readd win32 console color logging 2019-04-11 11:36:20 -04:00
Rick V
7a74631d38
add note for win32
trivia: specifiying 'syslog' in php for windows config causes php to write to the event log
we should do something similar here ig
2019-04-11 10:30:30 -05:00
Rick V
853d19209c
Revert "unbreak windows target"
select 64-bit target by default (since normal devs REEEEEEEE at the sight of 4 byte ptrs)
pretty much every _other_ linux/unix has a c++17 windows compiler

This reverts commit a844c61049.
2019-04-11 10:17:58 -05:00
Jeff Becker
fda7c4779e
make win32 work 2019-04-11 09:29:52 -04:00
Jeff Becker
4948fd50f8
be consice 2019-04-11 09:25:42 -04:00
Jeff Becker
351feadaec
make it work 2019-04-11 09:19:58 -04:00
Jeff Becker
40f8434851
syslog 2019-04-11 09:13:29 -04:00
Jeff Becker
9e24557429
refactor logger 2019-04-11 08:58:23 -04:00
Jeff Becker
a844c61049
unbreak windows target 2019-04-10 11:53:10 -04:00
Jeff
bcb5933fc9 ooofff 2019-04-10 11:42:36 -04:00
Jeff
784a25634b exit tun loop in destructor 2019-04-10 11:32:29 -04:00
Jeff
c45a3201c5 disable llarp_ev_pkt_pipe on win32 2019-04-10 11:26:50 -04:00
Jeff
ff0ef9040d Merge remote-tracking branch 'origin/master' 2019-04-10 09:56:26 -04:00
Jeff
c64fbf7cc5 Merge branch 'master' of ssh://github.com/majestrate/loki-network 2019-04-10 09:50:01 -04:00
Jeff
b8a0912611
Merge pull request #497 from michael-loki/kqueue_macos_fix
Fixup build on macOS
2019-04-10 09:46:14 -04:00
Jeff Becker
28e07903b6
put reply intro 2019-04-10 09:19:32 -04:00
Jeff Becker
04a5db8789
call hook 2019-04-10 08:56:14 -04:00
Michael
a8bf5beb97
Fixup build on macOS 2019-04-10 08:16:53 -04:00
Jeff
95119a0fe1 always use random paths for lookups 2019-04-09 15:20:02 -04:00
Jeff Becker
6220fef2dc
select good first hops 2019-04-09 12:27:47 -04:00
Jeff Becker
5c1ec93375
only have clients kill router contacts in nodedb 2019-04-09 12:11:58 -04:00
Jeff Becker
7f25b62ef5
remove adding of defaults to upstream dns resolvers 2019-04-09 12:03:59 -04:00
Jeff Becker
264ec5bfa3
fix 2019-04-08 14:25:06 -04:00
Jeff Becker
dfa00e3415
fix exit address 2019-04-08 14:21:01 -04:00
Jeff Becker
20e398b684
fix exit info 2019-04-08 13:40:51 -04:00
Jeff Becker
3da6551e82
make android compile 2019-04-08 11:54:19 -04:00
Jeff Becker
ac69213dd7
unit tests for llarp_ev_pkt_pipe 2019-04-08 10:04:58 -04:00
Jeff Becker
48254c8ea0
make it compile 2019-04-08 08:05:54 -04:00
Jeff Becker
184971a446
Merge remote-tracking branch 'origin/master' 2019-04-08 08:03:02 -04:00
Jeff Becker
e178a70929
use shared_ptr for event loop 2019-04-08 08:01:52 -04:00
Michael
5df8e16c44
Add metrics section to config 2019-04-07 18:55:21 +01:00
Michael
6f23cbe176
Add JSON publisher 2019-04-07 18:55:21 +01:00
Jeff
3783fb0e14 fix inbound sessions 2019-04-06 09:52:04 -04:00
Jeff Becker
1922221c3d
permit no upstream resolvers and send servfail if we have none 2019-04-05 12:46:11 -04:00
Jeff Becker
2f2b841c67
disable mx record dropping
add servfail
2019-04-05 12:39:43 -04:00
Jeff Becker
c910a2a2fb
more 2019-04-05 10:58:22 -04:00
Michael
57d6668e55
Move metrics out of daemon into llarp::Context 2019-04-05 10:20:48 +01:00
Jeff
3715c28616
Merge pull request #483 from loki-project/staging
Staging
2019-04-03 15:18:13 -04:00
Jeff
10f7e8fe1f
Merge pull request #480 from michael-loki/more_asan
Fix more address sanitiser issues
2019-04-03 15:14:22 -04:00
Jeff
8cb334d47f Merge remote-tracking branch 'origin/master' 2019-04-03 15:12:20 -04:00
Jeff
97b9c679b0 don't use bootstrap nodes for first hops in paths 2019-04-03 15:05:44 -04:00
Jeff
94f87c3371 kqueue stuff 2019-04-03 10:42:45 -04:00
Jeff
38fed8e753 don't connect to bootstrap nodes when we don't need to 2019-04-03 09:59:15 -04:00
Rick V
1fb3a0bf62
stderr is unbuffered by default? 2019-04-03 01:14:15 -05:00
Rick V
120e24ee0a
flush stream after each write 2019-04-02 23:56:16 -05:00
Michael
25f10d5b11
Fix more address sanitiser issues 2019-04-02 10:03:53 +01:00
Rick V
c7128339c1
fix win32 2019-04-01 16:26:31 -05:00
Jeff
60a42a83a3 better introset publish logic 2019-04-01 15:56:11 -04:00
Rick V
1041545dd3
only close event loop set fd once
this seemed to fix the endless crashes on windows
since we _already_ deal with it in llarp_ev_loop::stop()
2019-03-31 19:25:29 -05:00
Jeff
15a9086d57
Merge pull request #477 from majestrate/master
handle path death better
2019-03-31 19:47:46 -04:00
Jeff Becker
169d8beded
clear profiles on removal 2019-03-31 11:25:13 -04:00
Jeff Becker
aea9944c3d
mark success on profiles and remove pending lookup 2019-03-31 11:18:47 -04:00
Jeff Becker
965b0957ee
tweaks 2019-03-31 11:09:59 -04:00
Jeff Becker
c23498925c
disable profiling on path fail 2019-03-31 10:41:36 -04:00
Jeff Becker
b9207ce3e0
unconditionally update introset on dead path 2019-03-30 10:06:09 -04:00
Jeff Becker
24e7151ff5
log and don't remove path on died 2019-03-30 09:12:48 -04:00
Jeff Becker
b849ff9a94
handle path death better 2019-03-30 09:02:10 -04:00
Jeff
289de170ef
Merge pull request #472 from michael-loki/fix_catalog_test_failure
Fix Catalog.Iterator test failure
2019-03-29 19:08:29 -04:00
Michael
6b5a688e08
Fix Catalog.Iterator test failure 2019-03-29 22:14:22 +00:00
Jeff Becker
ae786feab6
Merge remote-tracking branch 'origin/master' 2019-03-29 12:14:09 -04:00
Michael
561b997c93
Move IWP code to its own directory 2019-03-29 16:00:12 +00:00
Michael
426a9b0df5
Refactor iwp into multiple files 2019-03-29 16:00:12 +00:00
Michael
17b39b0ed4
Move UTP code to its own directory 2019-03-29 16:00:12 +00:00
Michael
5ef4e18827
Refactor utp into multiple files 2019-03-29 16:00:12 +00:00
Michael
a7d15467b3
Refactor iwp linklayer 2019-03-29 16:00:12 +00:00
Michael
a2a275dcf1
Remove dead linklayer code 2019-03-29 16:00:11 +00:00
Jeff Becker
89477b3523
kill fully backlogged sessions 2019-03-29 11:26:44 -04:00
Jeff Becker
5af8d0a392
don't insert RCs in main thread 2019-03-29 11:08:31 -04:00
michael-loki
1fddf59743
Flush output stream after publish
Fixes #458
2019-03-29 11:52:28 +00:00
Michael
3bada02d89
Fixup one ASAN warning 2019-03-29 01:02:41 +00:00
Jeff
a47ab122b9
Merge pull request #461 from majestrate/master
make signing work
2019-03-28 15:15:51 -04:00
Jeff Becker
230e84c742
make signing work 2019-03-28 15:15:20 -04:00
Jeff
5d95873e8d
Merge pull request #460 from majestrate/master
fix bencode read crash with empty buffer
2019-03-28 10:34:35 -04:00
Jeff Becker
bfcaaa87be
check for empty buffer 2019-03-28 10:32:15 -04:00
Jeff Becker
3e1c067974
add include 2019-03-27 17:20:04 -04:00
Jeff
80e8c4006b
Merge pull request #455 from majestrate/master
staging
2019-03-27 17:14:17 -04:00
Jeff Becker
74f9949537
aaaaaa 2019-03-27 16:33:15 -04:00
Jeff Becker
fcdef8d363
don't mark paths as dead after established 2019-03-27 16:25:54 -04:00
Jeff Becker
071fce4529
premptive pumpwrite 2019-03-27 13:24:17 -04:00
Jeff
e80f2609dd
Merge pull request #454 from majestrate/master
staging
2019-03-27 10:00:14 -04:00
Jeff
470dcebc72
Merge pull request #452 from despair86/dev
poll(2) event loop for svr4
2019-03-27 09:59:18 -04:00
Jeff Becker
e08986e457
fix previous commit 2019-03-27 09:53:37 -04:00
Jeff Becker
c931ac069f
add AAAA records that return SIIT addresses 2019-03-27 09:36:11 -04:00
Jeff Becker
3a4d8f16a7
more 2019-03-27 08:36:27 -04:00
Rick V
8031156e53
remove dead code 2019-03-27 00:57:49 -05:00
Jeff
1deafe444a serve non connected dht nodes 2019-03-27 00:07:57 -04:00
Jeff
aa08d20480 ensure router is known 2019-03-26 22:47:27 -04:00
Jeff
ed10ef0b7d don't shift only build 2019-03-26 22:38:23 -04:00
Rick V
07e5978144
only pick one event loop on sol2 2019-03-26 21:20:58 -05:00
Rick V
bbba2c0eea
improve windows select loop
add generic svr4 poll(2) event loop
2019-03-26 19:56:34 -05:00
Jeff Becker
52d9cef79e
check for service node whitelist 2019-03-26 17:38:53 -04:00
Jeff Becker
714f5c6b5e
more 2019-03-26 17:01:20 -04:00
Jeff Becker
9e531c026c
fix warning on hop selection 2019-03-26 16:41:41 -04:00
Jeff Becker
127cfbbfbc
lower a way too big value 2019-03-26 16:20:46 -04:00
Jeff Becker
b254c19c5f
more metrics 2019-03-26 16:04:41 -04:00
Jeff Becker
0258eb9cb8
add some metrics 2019-03-26 15:30:10 -04:00
Jeff Becker
6a544d3f09
remove to prevent crash 2019-03-26 11:40:21 -04:00
Jeff Becker
74534c22b8
mark profile success on outbound connection success, add default case in metrics 2019-03-26 11:27:14 -04:00
Jeff Becker
f2ee8fb52b
Merge remote-tracking branch 'origin/staging' 2019-03-26 10:06:59 -04:00
Jeff Becker
b2272a49c3
Merge remote-tracking branch 'origin/master' 2019-03-26 10:06:53 -04:00
Jeff Becker
800f5001c2
allow up to 5 sessions per endpoint 2019-03-26 09:51:57 -04:00
Rick V
3c21db9316 lul 2019-03-25 23:38:57 +00:00
Michael
8f0f6dde9d
Include What You Use 2019-03-25 23:16:28 +00:00
Michael
91f401ff71
Integrate metrics into router 2019-03-25 20:36:23 +00:00
Michael
f2c5d32399
Metric collection subsystem 2019-03-25 20:36:23 +00:00
Michael
acfff4ca5c
Threading structures for metrics 2019-03-25 20:36:23 +00:00
Jeff
50559b6471
Merge pull request #444 from loki-project/master
propagate
2019-03-25 16:33:10 -04:00
Jeff Becker
1f65fcf8f5
Merge remote-tracking branch 'origin/staging' 2019-03-25 16:31:19 -04:00
Jeff Becker
549d49ee56
more 2019-03-25 16:04:34 -04:00
Jeff Becker
972a766557
try this 2019-03-25 16:01:45 -04:00
Rick V
2d4d731876
winsock2 nit 2019-03-25 13:37:11 -05:00
Jeff
30aebce091
Merge pull request #441 from loki-project/staging
Staging
2019-03-25 14:31:15 -04:00
Jeff
6187f7db4f
Merge pull request #440 from majestrate/master
staging
2019-03-25 14:30:09 -04:00
Rick V
67845e342a
distinguish good solaris from bad solaris 2019-03-25 12:03:52 -05:00
Jeff Becker
8e2b99907f
mark nodes timeout on lookup timeout 2019-03-25 12:47:44 -04:00
Jeff Becker
1882ffc016
don't publish or use bad routers with endpoints 2019-03-25 11:56:15 -04:00
Jeff Becker
d4cb6808ec
more 2019-03-25 11:41:37 -04:00
Jeff Becker
0fa8325e4e
don't connect to self 2019-03-25 10:36:51 -04:00
Jeff Becker
91298c4819
re-enable profiling 2019-03-25 10:17:02 -04:00
Jeff Becker
fbb2c78d3c
async remove dead rc files when we think they are dead 2019-03-25 09:52:22 -04:00
Jeff Becker
7065b00c22
kill dead routers from nodedb and lessen logs 2019-03-25 09:07:19 -04:00
Jeff Becker
8a63533d1a
have service nodes maintain min connections
path building more robust selection
2019-03-25 08:52:32 -04:00
michael-loki
94ba88bafc
Fix missing override 2019-03-25 01:54:37 +00:00
Jeff Becker
cc7454684b
kill dead links 2019-03-22 14:23:33 -04:00
Jeff Becker
db17b0fad5
disable profiling 2019-03-22 13:41:04 -04:00
Jeff Becker
07d1f32d0a
tweak timing of decay 2019-03-22 12:45:04 -04:00
Jeff Becker
b5b92d4763
give more chances to profiling 2019-03-22 10:48:53 -04:00
Jeff Becker
271f7f5b6d
don't connect to everyone as client 2019-03-22 10:37:37 -04:00
Jeff Becker
c63beae1c6
use std::min not std::max for linear backoff
ayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyylmao
this was fucking dumb as shit
2019-03-22 10:18:57 -04:00
Jeff Becker
ce126166af
more logging info 2019-03-22 10:10:30 -04:00
Jeff Becker
0369e42d5e
try harder to select hops 2019-03-22 08:44:15 -04:00
Jeff Becker
aafc710c19
Merge branch 'master' of ssh://github.com/majestrate/loki-network 2019-03-22 07:44:42 -04:00
Jeff Becker
183c451972
let utp manage link layer timeout 2019-03-22 07:44:28 -04:00
Jeff
d5ce529b27 implement random.snode A records 2019-03-21 21:01:17 -04:00
Jeff Becker
f5b9bd40ed
track lookup fails and kill outbound context if too many 2019-03-21 11:39:13 -04:00
Jeff
79214ae5c3
Merge pull request #420 from loki-project/staging
Staging
2019-03-21 08:30:26 -04:00
Jeff Becker
9d2ae0a5df
have service nodes build paths too >.> 2019-03-21 08:25:40 -04:00
Rick V
9c2a280988
well i'm a fucking idiot
(Why would i have a DHCP lease _before_ i connect a media cable?)
2019-03-20 21:55:58 -05:00
Jeff Becker
dc36856922
try tweaking timeout 2019-03-20 21:19:30 -04:00
Jeff Becker
2eb6d8a3ae
fix name 2019-03-20 12:41:48 -04:00
Jeff Becker
28474155b9
implement localhost.loki on tun 2019-03-20 12:40:28 -04:00
Jeff Becker
9d649b7b14
Revert "make exit handle localhost.loki for now"
This reverts commit 654864919f.
2019-03-20 11:48:29 -04:00
Jeff Becker
567efb9a92
Revert "move is_random_snode/is_localhost_loki into dns, llarp_HandleHookedDNSMessage() attempt at unification refactor between exit/tun handlers"
This reverts commit e388dc47eb.
2019-03-20 11:48:23 -04:00
Jeff
ff18ba229a
Merge pull request #411 from majestrate/staging
change signing algo
2019-03-20 10:56:44 -04:00
Jeff Becker
ee283547b5
change signature scheme and fucking hope that the rest of the code doesn't fug itself over ;~; 2019-03-20 10:51:10 -04:00
Ryan Tharp
95f8f641e1 Merge branch 'staging' of https://github.com/loki-project/loki-network into staging 2019-03-20 03:30:10 +00:00
Ryan Tharp
654864919f make exit handle localhost.loki for now 2019-03-20 03:29:54 +00:00
Ryan Tharp
e388dc47eb move is_random_snode/is_localhost_loki into dns, llarp_HandleHookedDNSMessage() attempt at unification refactor between exit/tun handlers 2019-03-20 03:28:58 +00:00
Ryan Tharp
d02eec2bcf add note 2019-03-20 03:18:38 +00:00
Ryan Tharp
823f276280 allow blocked output of identitySecret 2019-03-20 03:17:04 +00:00
Jeff
2e5cdd7ec9
Merge pull request #407 from majestrate/master
try fixing service node seed to public/private key generation
2019-03-19 18:08:43 -04:00
Jeff
3bf3339dd3 try fixing service node seed to public/private key generation 2019-03-19 18:06:21 -04:00