Commit Graph

829 Commits

Author SHA1 Message Date
0ddb86b5a8 These indexes weren't helping in practice, so remove them. Avoid some queries during a full refresh to load in maybe 1/3rd the time.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3800 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-29 19:00:44 +00:00
e84ced6f79 Add some useful indexes.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3798 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-27 01:42:48 +00:00
9fd4be0e4a Wow, load was slow because websocket sends were slow, because TextEcoder was slow. Do it in C.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3796 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-27 01:15:54 +00:00
7b32067b07 Make the 'apps' app list core apps, and populate apps lists when importing.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3795 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-26 02:49:45 +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
d0c89991be Allow exporting from a non-default db location. I'm running over NFS on this instance.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3789 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-23 19:14:43 +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
0f03701043 Fixed loads of memory leaks and related issues.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3782 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-22 18:50:29 +00:00
98de9b037a An attempt at making some live graphs of relevant stats. Needs more thought.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3780 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-21 02:53:15 +00:00
df0bb102dc Kill tasks when their websocket closes. Sigh.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3779 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-21 00:49:03 +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
1515525a1b Move data/global/settings.json into the database. Improved some error plumbing along the way.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3775 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-18 02:50:46 +00:00
0b5017b208 Import stock apps into /~core/ at launch. Makes the first time experience vaguely work with only running and clicking in the web interface.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3774 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-17 22:00:42 +00:00
c864041fa0 Fix a handful of errors and warnings I've seen. Gets further running in docker, now.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3773 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-17 21:46:32 +00:00
e9e1a3e80d Trace libuv's idle time metric.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3772 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-17 01:29:35 +00:00
1ddaa7deb0 Fix a use after free.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3771 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-16 23:44:10 +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
0bcc7d8c59 Always fetch the promise JSValue and ID when we allocate one. Make it impossible that we've freed it before we return it. Hopefully fixes leaks. Definitely not worse for performance.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3758 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-14 03:05:37 +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
7ba1e6980f Some UI tweaks and some sqlite performance things.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3755 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-13 00:16:27 +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
873019f054 Binary search exports, too. Is that all the things? This could still be improved, some. And tested.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3750 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-10 01:50:58 +00:00
86aa5e4d1e Better feedback when importing.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3743 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-09 01:32:33 +00:00
26150f98e1 Binary search import records.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3742 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-08 21:56:57 +00:00
c02a3d3659 Fixed https.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3734 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-05 01:58:12 +00:00
24cf18651a Fixed some error reporting.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3733 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-03 02:25:11 +00:00
df5dfa1539 Hooked up the trace link to perfetto.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3730 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-02 19:10:45 +00:00
23b15a8dc5 Child processes send trace information back to the parent. Also fixed weird double-activation of children.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3729 ed5197a5-7fde-0310-b194-c3ffbd925b24
2022-01-02 18:17:58 +00:00
12010a84a3 Sped up some follower/following UI. But ultimately followed more people and made everything else slower.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3720 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-29 21:00:03 +00:00
5e205ac897 Fix some errors I've seen responding to blobs.get. Especially: handle sending large blobs.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3715 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-28 21:48:03 +00:00
12ab2f4b85 Don't let promise IDs be zero.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3713 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-28 19:47:32 +00:00
f676cd937f Add a little app to list apps.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3712 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-28 17:48:21 +00:00
263a59f6c5 Binary search promises.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3711 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-28 17:44:48 +00:00
6eed168b7d Walking these callback lists that might unregister callbacks is a use after free hazard. Hmm.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3709 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-27 22:28:27 +00:00
9f0315458f Saw an asan issue here.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3708 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-27 22:27:27 +00:00
c590eb3a44 Whoops. Compile fixes.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3707 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-27 22:00:37 +00:00
2e1b0089ae Clean up failed callbacks.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3706 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-27 21:48:16 +00:00
05b55c849a Make setTimeout callable from ssb.js by moving it into util.js.c.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3705 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-27 20:49:07 +00:00
3cddc524d1 Some ebt.replicate success.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3703 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-27 19:52:42 +00:00
efcada8e25 Fix some leaks on a clean boot.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3702 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-23 20:31:37 +00:00
c616a16993 Still not syncing with the other clients I want but fighting to try to get it.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3701 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-22 19:57:34 +00:00
ba87f9acaa Moving things off of CDNs.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3698 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-22 13:51:49 +00:00
9faa4c9ca6 More minor output changes.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3697 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-21 22:43:41 +00:00
7f31798119 Another trace fix. Now it's perfect.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3694 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-21 19:33:02 +00:00
d9ffca81f8 Trace some lengths of linked lists.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3693 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-21 19:06:44 +00:00
1dd3b3c9aa More logging reduction and a trace fix.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3692 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-21 18:09:15 +00:00
8075bdfe99 Avoid a message storm, and reduce log spam a bit.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3691 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-20 17:00:25 +00:00
b15cf901ad Fix some things that GCC 10 doesn't like on raspi.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3690 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-17 23:58:59 +00:00
84a3d7348d Add a way to set arbitrary data accessible by all tasks. Use it to allow autologin for testing multiple instances more easily.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3689 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-12-01 23:29:53 +00:00
00c1ec660e Add some tests for message callbacks, and fix all the things.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3688 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-11-17 23:47:55 +00:00
9e1bab03eb Made it easier to run multiple instances.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3687 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-11-14 22:55:21 +00:00
63c344112d Add a callback for when messages are added to the database. Abuse it to forward messages semi-live.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3686 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-11-11 00:05:07 +00:00
18c90214a8 Trying to normalize event handling somewhat. More to go before it's simple.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3685 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-11-07 22:28:58 +00:00
68cf3efcde I am too good at breaking syncing.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3684 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-11-06 02:10:13 +00:00
2fb7fceb0c Consolidate error handling until util, too.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3682 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-11-03 22:28:25 +00:00
fde7fb4270 Create a util.js.{h,c} from some common things.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3681 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-11-03 22:15:46 +00:00
03a2367532 Fixed lots of things about storing blobs.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3680 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-10-31 21:15:18 +00:00
08cd0ec878 Continuing to try to get this thing talking to other clients.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3679 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-10-31 19:39:16 +00:00
0a01332d1f Fix some RPC issues?
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3678 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-10-30 21:07:01 +00:00
256c47c33c Ugg, need to get this talking SSB properly.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3677 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-10-28 02:19:57 +00:00
62ad08985c Whoops.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3676 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-10-28 01:11:30 +00:00
21ba7cb02c Make all of the File.* operations async.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3675 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-10-28 00:53:16 +00:00
77ec1a0b2e Don't start the broadcast listener if we're not starting an SSB server.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3674 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-10-28 00:20:17 +00:00
07a0828626 Async File.writeFile.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3673 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-10-27 23:27:21 +00:00
08e32c0de4 Minor cleanups.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3672 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-10-24 19:23:21 +00:00
f4f6bb8333 Move all JS interface things into .js.c files with _register() functions.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3671 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-10-24 15:46:30 +00:00
b1a6384ac1 Don't allow unexpected arguments.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3670 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-10-15 19:44:10 +00:00
786c83c57c Fix tests in light of async File.readFile.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3669 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-10-10 22:45:24 +00:00
843c53e15e I just decided. Braces on their own lines.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3668 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-10-10 21:51:38 +00:00
470814f147 Made File.readFile async.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3667 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-10-06 01:25:33 +00:00
059392df8e What was ssb.rpc.c now lives in ssb.js.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3663 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-09-09 00:37:02 +00:00
3b4f0c1321 Add a green [pass] print.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3662 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-09-09 00:23:55 +00:00
a09d159268 Moving a little bit more to this test.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3661 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-09-09 00:15:57 +00:00
91ec68252d Cleans up some confusing output from -t ssb.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3660 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-09-06 21:21:51 +00:00
e85168ac53 Fixed some memory leaks. Memory leak-related paranoia. Minor cleanups.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3659 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-09-06 20:54:44 +00:00
35e0d8b68a Add some test infrastructure.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3658 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-09-06 18:23:22 +00:00
cadcb236ee Work in progress moving SSB RPC handlers into javascript.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3657 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-09-06 17:50:38 +00:00
cfd5341a6b Rename the DB things.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3656 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-08-22 19:41:27 +00:00
e922af4c55 Trying to get organized. Move things db, import, and export out of ssb.c.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3655 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-08-22 19:34:28 +00:00
45dfe34375 Fix the release build.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3654 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-08-22 17:38:20 +00:00
c78d3b0413 That's all of the tests.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3653 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-08-19 20:10:37 +00:00
dd90fe4fbf Starting to move the tests to C.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3652 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-08-19 19:29:37 +00:00
03cf347394 Try to clean up some websocket noise, and try harder to not duplicate connections.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3647 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-01-20 02:01:14 +00:00
3487f335e5 Remove an explicit GC call.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3646 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-01-20 01:42:47 +00:00
8c0d380a4d printf newline.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3645 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-01-20 01:39:06 +00:00
cbc21cfbe6 Don't connect to ourselves or duplicates.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3641 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-01-14 02:45:10 +00:00
7d8258c262 Add args to unsupported message response based on some warnings I saw. Indicate which files are unsaved in the editor.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3638 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-01-13 02:15:09 +00:00
7012418b13 Support requiring adjacent files from the same app.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3636 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-01-11 02:09:19 +00:00
2b5a56abfe Allow visiting/viewing an app message by id.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3635 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-01-09 23:06:33 +00:00
ff4c144be3 Expose a user's apps. Baby step to being able to share an app.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3632 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-01-06 02:56:25 +00:00
6ffdae6274 Friends of friends of connections is one step further than intended.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3626 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-01-03 19:29:13 +00:00
01ff073af0 Trying to fix blob transfers.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3625 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-01-02 22:48:33 +00:00
b747bd74b3 Enable SQLITE_SECURE_DELETE, bump up the max rpc size to fix syncing problems, and add a yet unused timestamp index.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3623 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-01-02 19:27:41 +00:00
79022e1e1f Merge branches/quickjs to trunk. This is the way.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3621 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-01-02 18:10:00 +00:00
d293637741 All of the changes that have been sitting on tildepi for ages. For posterity.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3530 ed5197a5-7fde-0310-b194-c3ffbd925b24
2020-09-23 01:58:13 +00:00
d6018736d5 Quick experiment with quickjs.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3423 ed5197a5-7fde-0310-b194-c3ffbd925b24
2019-10-06 22:19:08 +00:00
c7b13dd1ae Build for whichever openssl.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3422 ed5197a5-7fde-0310-b194-c3ffbd925b24
2019-09-29 21:05:49 +00:00
2bc62b2ecd Fix some easy leaks reported by asan.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3411 ed5197a5-7fde-0310-b194-c3ffbd925b24
2017-11-18 23:02:08 +00:00
3b27db2655 Update to V8 6.0 and fixes for OpenSSL 1.1.0.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3408 ed5197a5-7fde-0310-b194-c3ffbd925b24
2017-07-30 14:17:42 +00:00
f0be58da89 async/await is on by default in modern V8. This flag produces a warning.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3401 ed5197a5-7fde-0310-b194-c3ffbd925b24
2017-04-29 11:40:05 +00:00
c1b75821bf Add File.stat. Use it to cache manifests to speed up task start. async spreads like a virus.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3377 ed5197a5-7fde-0310-b194-c3ffbd925b24
2017-01-13 01:04:00 +00:00
4cdbdaf3d1 Disable Nagle's algorithm to try to make things more uniformly responsive.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3368 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-12-24 13:57:27 +00:00
4313cfbc4f Let task.execute accept raw UTF-8 bytes, for the sake of the tests. Missing #include. Minor cleanup.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3359 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-12-22 18:11:49 +00:00
5c855afbb3 Fixed a bunch more encoding issues.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3358 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-12-22 17:38:21 +00:00
937e32fb99 Refactored away some grossly duplicated code in Socket::write.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3357 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-12-22 16:39:01 +00:00
ba298b2e7c Begin the hairy process of making this thing deal safely with string encodings. This will be broken for some time.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3356 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-12-21 20:19:23 +00:00
599d9c9f45 Fix ICU on Linux, and test it.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3343 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-09-19 13:02:54 +00:00
c9b528f1dc This fixes Socket.startTls() when using the default TLS context.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3334 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-09-16 00:32:47 +00:00
313efbe2d6 Fixed a segfault I noticed related to require and shutdown.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3292 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-07-31 15:07:08 +00:00
cca505ff01 Oh snap. Start using async+await.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3285 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-07-24 17:02:45 +00:00
14682d8be7 v8 5.1 => 5.2
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3279 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-07-23 10:54:10 +00:00
61ea965080 I think this TaskTryCatch was effectively eating exceptions.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3245 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-06-12 13:44:19 +00:00
ca1271ffbc Stop passing 'this' in serialized function calls. There are currently no productive uses of it, and it causes excessive work exporting functions that are never called.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3214 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-04-23 11:42:03 +00:00
8a1085d5a3 These exceptions were blocking the actual, useful exceptions.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3212 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-04-18 19:58:09 +00:00
8737c7558a Actually read and add intermediate certificates to the SSL context. Fixes certificate warnings.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3211 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-04-17 14:34:22 +00:00
72544179c9 Set rlimits on OS X. Enable tests on OSX (except valgrind). setrlimit error handling.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3209 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-04-17 12:56:46 +00:00
9bfb0d6a4c Debug prints.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3207 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-04-16 21:42:50 +00:00
6410b13ece Now child processes have no ability to open files.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3206 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-04-16 21:30:52 +00:00
74af1d361c After a brief journey through namespaces and cgroups, rlimits seem to be an effective way to enforce most of the assurances I need.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3205 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-04-16 19:04:15 +00:00
bea0ae23dd Fix a bug that was preventing require('ui') from working, and improve resolveRequire while I'm in there.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3195 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-04-09 18:36:43 +00:00
4d0fdfa484 Fixes tests.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3192 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-04-09 15:31:12 +00:00
560df7e5f3 Made it possible to require() a script from another package. It's high time for some code reuse.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3191 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-04-09 15:24:48 +00:00
7a16a1d65c I think this fixes tests, and makes them runnable from continuous integration.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3161 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-03-13 13:37:58 +00:00
7c6a377c0b sandboxos => tildefriends
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3157 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-03-12 18:50:43 +00:00