Commit Graph

81 Commits

Author SHA1 Message Date
c09e043812 blob wants from JS -> C.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4106 ed5197a5-7fde-0310-b194-c3ffbd925b24
2023-01-05 00:52:23 +00:00
a66a70324d More blobs.get. Finally replicated again to manyverse.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4102 ed5197a5-7fde-0310-b194-c3ffbd925b24
2023-01-02 02:11:21 +00:00
67fbbd4a8d More generous receive buffer. Max RPC size is stored in two bytes. Double so that we have overhead for the header itself and another RPC.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4101 ed5197a5-7fde-0310-b194-c3ffbd925b24
2023-01-02 00:58:15 +00:00
f257cccded I think this fixes some blob replication bugs. Going to test more.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4099 ed5197a5-7fde-0310-b194-c3ffbd925b24
2023-01-02 00:33:11 +00:00
5342ddb2bd Fix an RPC stall? How did this ever work? How is it supposed to work?
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4098 ed5197a5-7fde-0310-b194-c3ffbd925b24
2023-01-01 22:42:31 +00:00
a9f6593979 Add replication to what -t bench measures. Add a bool to control printing RPC messages. Respond to ebt.replicate with messages that weren't requested.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4095 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-12-31 18:59:29 +00:00
b65706ffc4 Don't close the parent connection when a tunnel closes. Just clean up the request through it.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4053 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-11-19 21:42:54 +00:00
be6f24b3ee Get my foot in the door converting ssb.js to C.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4050 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-11-17 01:36:24 +00:00
041e63ac70 First actual successful communication through a room.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4039 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-11-13 22:30:09 +00:00
1e84b74ced Can actually attempt to connect to a room from the web interface, now. No actual success yet.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4036 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-11-13 03:24:30 +00:00
2dc7f58c80 Fixed some plumbing so that I can actually stay connected to a go-ssb-room.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4032 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-11-12 02:00:49 +00:00
ae545e7b2b Minor cleanup.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4028 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-11-09 23:25:22 +00:00
e49b54207a Show potential room connections differently.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4027 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-11-09 03:51:31 +00:00
6ba41f03da Don't assume we don't have to DNS lookup broadcasts.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4022 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-11-09 02:15:07 +00:00
06529fddfb Trying to make connections more robust.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4020 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-11-09 01:31:18 +00:00
f015c8727d Don't expire tunnel connection broadcasts. They go away when either connection goes away.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4019 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-11-09 00:37:51 +00:00
3a5ae4c228 Attempt to clean up requests for tunnel connections that are going away.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4018 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-11-07 02:57:29 +00:00
b12f8f9da8 First go at implementing rooms. A test passes that appears to exercise them.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4017 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-11-02 23:34:44 +00:00
f53ce584e3 No more secrets in ~/.config, and speed up some tests.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4002 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-10-14 12:27:34 +00:00
f764007fc6 Tiny steps toward getting away from one global identity.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3932 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-07-14 01:01:14 +00:00
1efc0fd73b Another linked list bites the dust.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3928 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-07-12 01:51:15 +00:00
aee99af953 Track request counts?
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3927 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-07-09 22:00:33 +00:00
7f350a3d87 Add a helper for getting array length: tf_util_get_length.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3925 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-07-09 15:13:35 +00:00
fb3ad0d95d Slight cleanup.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3921 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-07-09 14:23:58 +00:00
c9e01f220d Track our own quickjs memory usage so that we can avoid expensive calls to JS_ComputeMemoryUsage.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3915 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-06-20 17:57:07 +00:00
9c90b2bc1d Use a custom allocator for everything.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3892 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-06-04 17:04:51 +00:00
939e13c3c8 Fix release tests.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3876 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-05-21 01:38:13 +00:00
7848b5e560 Merge in mingw changes.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3873 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-05-16 22:30:14 +00:00
498a093cde Some possible leaks?
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3851 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-02-27 19:38:48 +00:00
50bef73200 To calculate an ID, take the utf-8 message, convert it to utf-16, and then throw away the high bytes. Of course.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3834 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-02-11 02:44:27 +00:00
d4135f7133 Message IDs are apparently generated from the latin1 encoding of a message. Added a command to check/fix that.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3833 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-02-10 03:58:33 +00:00
07b4f2b08f I think I imagined this message size limit.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3831 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-02-08 02:07:23 +00:00
6b20d69976 Tweaking memory stats and trying to figure out why startup got so much slower.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3828 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-02-06 03:28:29 +00:00
1aa4b0e590 Hook up some stats from the SSB side.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3822 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-02-05 20:18:58 +00:00
ef9e42e030 malloc and leak fix.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3821 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-02-05 19:58:22 +00:00
8ecc07452e Fix socket leaks.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3818 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-02-05 17:06:51 +00:00
7733cb2604 Maybe don't destroy the signature if we're going to try to validate again.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3815 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-02-03 02:38:05 +00:00
157209e9b5 Debugging a thing.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3814 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-02-03 02:14:50 +00:00
cd51edcd8f I think this fixes the questionable archaic sequence / author order issue.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3813 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-02-03 02:00:05 +00:00
25ee0a3561 Trying to sort out connection cleanup.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3793 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-26 01:15:04 +00:00
0a580b60b1 Safer?
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3788 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-23 12:52:55 +00:00
24116f498f Null check?
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3787 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-22 22:26:39 +00:00
5623cba7c3 Fix a buffer size / disconnect issue.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3786 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-22 21:20:43 +00:00
bd81b2acf5 More bugs.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3785 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-22 20:47:10 +00:00
b2a552b3e0 Needs more work, but several experiments that make things more responsive under load.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3783 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-22 20:13:14 +00:00
1734c88627 Try to fix some connection issues. Urge to rewrite rising.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3778 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-20 04:01:45 +00:00
df94378b96 Actually expire broadcasts.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3777 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-20 03:35:03 +00:00
019ab99ecc Trying to better understand import/export leaks. Possibly cleaned up after tasks better, but mostly just tweaked counters.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3762 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-15 17:40:24 +00:00
e1f868730f Tracing these list lengths sometimes dominates performance, so manually keep count for now.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3756 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-13 01:08:17 +00:00
53aac8d23a Fixed a time int overflow issue on raspberry pi.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3752 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-11 03:18:15 +00:00