Commit Graph

301 Commits

Author SHA1 Message Date
Jordan Bancino fb7363d97e Don't uninstall the configuration file. 2022-11-18 22:49:06 +00:00
Jordan Bancino fe29b9f848 Remove unit testing code.
Until I can do it properly, I don't want to do it at all.
2022-11-18 22:27:23 +00:00
Jordan Bancino 07f4ecd2d7 Make a number of improvements to cache handling.
- Items that are too big for the cache are now no longer immediately
  evicted; everything else is. This is probably not desirable, but it is
  not unexpected.
- Multithreading now should work as expected; DbRefs are locked before
  they are updated from the disk, and they are not evicted from the cache
  if they are locked by another thread.
- The cache may be no smaller than 1024 bytes. Previously the caller of
  DbOpen() could choose to disable the cache, and provisions were made in
  the code to support this, but this is now no longer possible because
  without the cache, there would be no way to know what files were open,
  which could lead to a race condition if two threads open the same file.
2022-11-18 22:17:56 +00:00
Jordan Bancino 045c6d8644 Cache eviction 2022-11-18 20:42:08 +00:00
Jordan Bancino e7ad166877 Fix some memory leaks in Db 2022-11-18 19:36:15 +00:00
Jordan Bancino f6851de75f Fix a few bugs in JsonDecode(). It should now properly decode objects. 2022-11-18 14:51:44 +00:00
Jordan Bancino 2e6c129263 Fix a mutex bug in Db and some memory errors in Json 2022-11-17 23:51:45 +00:00
Jordan Bancino d26fad4619 Add UtilMkdir() to recursively make directories 2022-11-17 22:57:29 +00:00
Jordan Bancino 9597894356 Fix some warnings on GCC.
These aren't really anything to be concerned about, but making GCC feel good
about my code makes me feel better about my code.
2022-11-17 19:33:59 +00:00
Jordan Bancino 46cc1df385 Do some Db work 2022-11-15 18:20:05 +00:00
Jordan Bancino 9494016d2d Apply #34 2022-11-13 17:10:25 +00:00
Jordan Bancino a356403cfd Finish DbComputeSize() 2022-11-12 18:26:31 +00:00
Jordan Bancino 8c36efa1d0 Add item to TODO.txt 2022-11-11 01:10:16 +00:00
Jordan Bancino 6776db5ff9 Accept #33 2022-11-11 01:07:49 +00:00
Jordan Bancino c7a358150c Update documentation 2022-11-08 17:56:11 +00:00
Jordan Bancino 8e71cc833c Change behavior of "id" configuration directive. 2022-11-08 17:53:01 +00:00
Jordan Bancino efbbf42a6e Fix memory and connection closing errors. 2022-11-08 01:05:28 +00:00
Jordan Bancino 6c016b813c Add relayd.conf to contrib/ 2022-11-07 16:19:29 +00:00
Jordan Bancino 95c566d314 Add td changes to the documentation 2022-11-07 14:07:31 +00:00
Jordan Bancino 328303506b Add one-time donate link. 2022-11-07 13:47:33 +00:00
Jordan Bancino 40dc19cfbf Update TODO 2022-11-06 22:02:24 +00:00
Jordan Bancino 2c65f4925c Add install and uninstall recipes 2022-11-06 22:01:59 +00:00
Jordan Bancino d8005ef6c2 Renamed contributing(7) and onboarding(7) to indicate they belong to Telodendria. 2022-11-06 20:18:51 +00:00
Jordan Bancino 37ee7700f4 Start writing a function to compute the in-memory size of an object. 2022-11-06 00:47:17 +00:00
Jordan Bancino 45951569dd Add LiberaPay information. 2022-11-05 13:26:00 +00:00
Jordan Bancino 0a4c9f3751 Apply part of #32 (Thanks LDA <lda@devhonk.tk) 2022-11-05 01:29:20 +00:00
Jordan Bancino 14223614ad Support incremental builds on DragonFlyBSD 2022-11-03 19:08:24 +00:00
Jordan Bancino 0fe59a70cc Add some items. 2022-11-03 18:11:58 +00:00
Jordan Bancino 18781213cc Clean the TODO list up a bit, organizing it and deleting old entries. 2022-11-03 16:42:57 +00:00
Jordan Bancino 84abff7fb8 Tune the memory table size a little bit.
No idea if this hurts or helps, actually, but now we have a tunable
constant, instead of a magic number.
2022-11-02 16:46:22 +00:00
Jordan Bancino a8beded518 Fix occasional "Bad Request" response by waiting for data to be sent.
This also makes UtilGetDelim() and UtilGetLine() thread safe in that it
isn't setting a global errno. Of course, errno should be thread safe
already, but this makes it much less ambiguous.
2022-11-02 16:21:03 +00:00
Jordan Bancino 92cc2206a1 Fix a few things to make Telodendria compile and run on Cygwin. 2022-11-02 15:20:37 +00:00
Jordan Bancino 6992f36c86 Fix segfault in fclose() on Linux. 2022-11-02 00:35:05 +00:00
Jordan Bancino 5af229a86e Apply #31 2022-11-02 00:18:13 +00:00
Jordan Bancino fddfbf57ca Add some comments for future developers. 2022-11-01 21:50:02 +00:00
Jordan Bancino 839f3a886e With git cvsimport, we shouldn't actually need this anymore. 2022-11-01 17:18:44 -04:00
Jordan Bancino cbdabc38a2 Delete weird artifact of git cvsimport 2022-11-01 17:15:18 -04:00
Jordan Bancino 182bc13ea8 Make the READMEs a little more descriptive.
I need something to test git cvsimport with, too.
2022-11-01 16:29:31 -04:00
Jordan Bancino c6b4c3ad76 Make the READMEs a little more descriptive.
I need something to test git cvsimport with, too.
2022-11-01 16:29:31 -04:00
Jordan Bancino deab108882 Add a README for GitHub. 2022-11-01 13:04:00 -04:00
Jordan Bancino 547e4e0203 Add a .gitignore for the GitHub mirror. 2022-11-01 12:53:42 -04:00
Jordan Bancino 757938b293 Fix segvault if no config file was specified. 2022-11-01 09:47:25 -04:00
Jordan Bancino d9991bbd77 Apparently _DEFAULT_SOURCE is required to compile on Linux. 2022-11-01 09:04:41 -04:00
Jordan Bancino 82d460da6f Fix some sneaky memory bugs and resource leaks. 2022-11-01 09:04:15 -04:00
Jordan Bancino bf65f29fdf Update TODO 2022-11-01 09:03:54 -04:00
Jordan Bancino bbee9dcea6 Fix some more bugs. 2022-10-31 20:41:50 -04:00
Jordan Bancino 63dbf9ae35 Fix a few more memory bugs. Still have some to tackle. 2022-10-31 19:52:37 -04:00
Jordan Bancino 629d953518 Reorder some TODO items 2022-10-31 11:35:25 -04:00
Jordan Bancino ead65e7334 Fixed some misc bugs I found while debugging a memory error. 2022-10-31 11:07:32 -04:00
Jordan Bancino 5ca10f298a Update TODO 2022-10-31 10:13:31 -04:00