Jeff Becker
86a4ccd98f
unconditionally bundle first fragment in xmit
2019-12-03 12:54:32 -05:00
Jeff Becker
1f83fdb190
fix previous commit
2019-12-03 12:54:23 -05:00
Jeff Becker
19835ce501
dont use auto
2019-12-03 12:53:20 -05:00
Jeff Becker
1a6a66108d
make it compile
2019-12-03 12:53:11 -05:00
Jeff Becker
c88602ee16
break the world to make it faster
2019-12-03 12:53:01 -05:00
Jeff Becker
01b24c7090
limit connections
2019-12-03 12:49:29 -05:00
Jeff Becker
0f4c531d06
fix path resource leak
2019-12-03 12:49:15 -05:00
Jeff
b08897a214
Merge pull request #935 from jagerman/logic-thread-fixes
...
Logic thread fixes
2019-12-03 12:47:42 -05:00
Jeff
67b08e0e50
Merge pull request #933 from majestrate/loki-ping-call-2019-11-27
...
Loki ping call 2019 11 27
2019-12-03 12:45:40 -05:00
Jeff
8288bf3958
Merge pull request #931 from majestrate/rpc-fetch-privkey-2019-11-26
...
use curl to fetch from lokid rpc the identity key
2019-12-03 12:45:18 -05:00
Jeff Becker
3c85691f81
limit calls to pumpll such that it gets called fast enough but not too much under load
2019-11-29 19:11:14 -04:00
Jeff Becker
a2fc35a7aa
lower limit to 25ms
2019-11-29 19:11:14 -04:00
Jeff Becker
5924a2cec0
limit calls
2019-11-29 19:11:14 -04:00
Jason Rhinelander
5d8f547d33
Set tun to non-blocking
...
If we can't write to it we want failure, not blocking.
2019-11-29 19:11:14 -04:00
Jason Rhinelander
740460318a
Die if job queue full
...
If this happens it's a pretty serious error; if someone is hitting it
occassionally it's better to know and update their queue size (and if it
is a runaway situation lokinet doesn't come back anyway).
2019-11-29 19:11:14 -04:00
Jeff Becker
28a2d471d6
style nitch
2019-11-29 19:11:14 -04:00
Jeff Becker
44e0e2c034
dont flood the logic queue
2019-11-29 19:11:14 -04:00
Jeff Becker
fba1e47d1c
call jobs in logic
2019-11-29 19:11:14 -04:00
Jeff Becker
f5ede2d875
ammend previous commit
2019-11-29 19:11:14 -04:00
Jeff Becker
3489753d5a
remove jenky call to logic thread in link server
2019-11-29 19:11:14 -04:00
Jeff Becker
0828307906
fix address mapping bug
2019-11-29 19:11:14 -04:00
Jeff Becker
5188873288
batch and flush
2019-11-29 19:11:14 -04:00
Jeff Becker
8849173112
try async decrypt then verify
2019-11-29 19:11:14 -04:00
Jeff Becker
2852601a28
flush in logic
2019-11-29 19:11:14 -04:00
Jeff Becker
d823d6fa70
only flush when no other jobs are executing
2019-11-29 19:11:14 -04:00
Jeff Becker
9e305c5b30
use lockless queues to gather results of transit traffic work
2019-11-29 19:11:14 -04:00
Jeff Becker
d591394ad2
dont process empty queues
2019-11-29 19:11:14 -04:00
Jeff Becker
e2472d985d
process transit hops on flush
2019-11-29 19:11:14 -04:00
Jeff Becker
1a06da9c3d
reduce calls in link pump
2019-11-29 19:11:14 -04:00
Jason Rhinelander
d13a3d2b62
Don't flush here; we already have a tick flushing
2019-11-29 19:11:14 -04:00
Thomas Winget
6d506302dc
Show number of logic thread jobs in debug builds
2019-11-29 19:11:14 -04:00
Thomas Winget
6acf7bff7e
Track and log UV event loop ticks in debug builds
2019-11-29 19:11:14 -04:00
Jeff Becker
285a9a1dd5
prevent segfault
2019-11-29 19:11:14 -04:00
Jeff Becker
a3a62c34f3
use timer guard for all jobs in debug mode
2019-11-29 19:11:14 -04:00
Jeff Becker
af663d8b10
prune members in timer context
2019-11-29 19:11:14 -04:00
Jeff Becker
11d4760c3d
add metrics tracking for logic jobs in debug mode
2019-11-29 19:11:14 -04:00
Jeff Becker
ba0fd223d9
reduce number of jobs we put onto the logic thread
2019-11-29 18:45:06 -04:00
Jeff Becker
d880eec1de
ping lokid rpc
2019-11-27 13:11:15 -05:00
Jeff Becker
098915bb8e
add check for identity key validity
2019-11-26 20:40:55 -05:00
Jeff Becker
5868a25fcc
clear response between tries
2019-11-26 17:13:41 -05:00
Jeff Becker
d685057754
update readme and disable curl on windows
2019-11-26 17:11:13 -05:00
Jeff Becker
d12c75ce1e
move sleep
2019-11-26 17:04:52 -05:00
Jeff Becker
61b75828f0
sleep
2019-11-26 17:03:45 -05:00
Jeff Becker
3878ebd534
use curl to fetch from lokid rpc the identity key
2019-11-26 16:58:20 -05:00
Jeff
f8c6c1379a
Merge pull request #929 from majestrate/increase-logic-queue-size-2019-11-25
...
make logic job queue 8 times bigger
2019-11-26 13:32:25 -05:00
Jeff Becker
dd48b149ca
make job queue size configurable
2019-11-25 16:30:34 -05:00
Jeff Becker
853108ce6e
make logic job queue 8 times bigger
2019-11-25 16:15:31 -05:00
Jeff Becker
cbb7196b30
fix "zero hop" bug
2019-11-25 11:53:03 -05:00
Jeff
ee40389f05
Merge pull request #916 from majestrate/add-contention-killer-2019-11-14
...
assorted crap
2019-11-22 16:31:15 -05:00
Jeff Becker
c3858a56df
make it compile
2019-11-22 16:23:21 -05:00