Commit Graph

61 Commits

Author SHA1 Message Date
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