|  | 8c9d687d50 | Variety of minor fixes I've been running with.  SSB web interface changes.  calloc overallocation fix.  Use sqlAsync.  Probably some other things. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4195 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-23 01:29:54 +00:00 |  | 
			
				
					|  | b8b694864e | Whoops, overallocated. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4194 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-20 02:42:11 +00:00 |  | 
			
				
					|  | 86bc46a11e | Track memory allocations with a linked list.  This is only about 3x slower than without tracking instead of 5x and growing. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4192 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-19 22:28:36 +00:00 |  | 
			
				
					|  | a6a6fe75ec | Aha, one more leak in sqlAsync. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4191 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-19 13:51:06 +00:00 |  | 
			
				
					|  | 4ce988d00b | Memory leak in maskBytes. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4189 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-19 02:01:59 +00:00 |  | 
			
				
					|  | 1548a8a852 | One less alloc for setTimeout. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4188 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-19 01:28:14 +00:00 |  | 
			
				
					|  | a9551b057b | Trace more things.  Add a CORS header for /mem so I can make an app to examine it.  Fix a memory leak.  Fix tf_realloc(NULL, 0). git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4187 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-18 23:43:00 +00:00 |  | 
			
				
					|  | 88c7d91858 | Brute force memory tracking. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4186 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-18 21:00:39 +00:00 |  | 
			
				
					|  | 53cb80ebf7 | Replace the sqlite allocator, and use our own tracking for stats.  Want to use this to collect callstacks for all allocations. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4185 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-18 19:14:06 +00:00 |  | 
			
				
					|  | 1f67343d75 | Make traces work with multiple threads, I think. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4184 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-18 00:51:22 +00:00 |  | 
			
				
					|  | 4bea8bb6ba | sqlite thread safety and extended result codes, mainly. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4183 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-17 22:43:19 +00:00 |  | 
			
				
					|  | 8e1461b3f1 | Catch more sqlite errors. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4182 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-17 02:04:48 +00:00 |  | 
			
				
					|  | 8a2d3d4669 | Pass around SQL errors slightly better. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4180 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-16 00:06:45 +00:00 |  | 
			
				
					|  | 1741403206 | More memory leaks. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4179 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-15 02:59:46 +00:00 |  | 
			
				
					|  | 980db880cc | Memory leak. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4178 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-15 02:56:01 +00:00 |  | 
			
				
					|  | 507a62539d | Fix exporting. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4177 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-15 02:43:08 +00:00 |  | 
			
				
					|  | 6b5d73ed5c | Vague attempt at some more cleanup, and stick pthread_self() in the traces. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4176 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-15 02:34:46 +00:00 |  | 
			
				
					|  | 1f77df7a90 | Remove dependency on base64c.  Use libsodium's.  Also consolidate the calls, as the usage is quite special. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4175 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-14 03:15:24 +00:00 |  | 
			
				
					|  | fa87462405 | Finish writing this code.  Yep. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4174 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-14 02:13:08 +00:00 |  | 
			
				
					|  | a5f9f927e6 | Fix some memory leaks I just introduced. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4173 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-08 01:50:47 +00:00 |  | 
			
				
					|  | b35d74ce36 | Allow running read-only sqlite queries from libuv worker threads.  Needs so much more testing. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4172 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-08 01:29:44 +00:00 |  | 
			
				
					|  | beda047eb0 | Disable Nagle's algorithm before we start the TLS handshake.  Just speculation that it will help with some responsiveness. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4170 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-06 02:29:00 +00:00 |  | 
			
				
					|  | f6742bebf3 | Tracing will continue until performance improves. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4169 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-03 15:06:18 +00:00 |  | 
			
				
					|  | 7f334ad783 | Fine, only malloc_trim if it looks like we have it. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4168 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-03 14:20:26 +00:00 |  | 
			
				
					|  | ffda896308 | Finish import. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4167 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-03 14:09:53 +00:00 |  | 
			
				
					|  | b2fbe9dfac | Stale doc file.  Fix hashtag links.  Trace some GC stuff and try malloc_trim, whynot. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4166 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-03 14:01:05 +00:00 |  | 
			
				
					|  | 6d6c41bffa | Oops.  Cleanup. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4165 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-02 02:48:07 +00:00 |  | 
			
				
					|  | e04d137af5 | Refactored import and export.  No user on disk. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4164 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-02 02:09:05 +00:00 |  | 
			
				
					|  | e0dcec074c | Add process name to trace. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4160 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-01 23:20:16 +00:00 |  | 
			
				
					|  | a8cecb5c64 | Fix trace producing invalid JSON. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4159 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-02-01 03:15:22 +00:00 |  | 
			
				
					|  | 3c288f7f68 | Remove duplicate apps entries on import. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4156 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-29 01:58:57 +00:00 |  | 
			
				
					|  | 7091b6e6a5 | Move some things to C that probably should have never been in JS, especially sha1.  Minor refactors, cleanup, and deletes along the way. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4154 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-28 21:59:36 +00:00 |  | 
			
				
					|  | da75ad9337 | Fix buffer overflow. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4148 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-24 17:38:45 +00:00 |  | 
			
				
					|  | 7318ddd70e | This might fix one disconnect issue, when a tunnel.connect error can't be forwarded? git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4147 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-22 23:34:32 +00:00 |  | 
			
				
					|  | ab75ec07f8 | Added some storage+debugging to track what happens before we disconnect.  Maybe I'll learn something. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4146 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-22 20:37:19 +00:00 |  | 
			
				
					|  | 5d5ff121f9 | Socket leak on accept. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4144 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-21 20:12:41 +00:00 |  | 
			
				
					|  | 77df158178 | Don't create tunnel connections to targets we're already talking to.  Policy is only one connection per id. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4137 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-19 00:02:31 +00:00 |  | 
			
				
					|  | 0af1bcf110 | Audited message flags? git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4136 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-18 23:43:49 +00:00 |  | 
			
				
					|  | e05302ac99 | Oops.  This caused a double-reject. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4135 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-18 23:14:44 +00:00 |  | 
			
				
					|  | ce6cc82d64 | Some socket fixes. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4134 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-18 23:03:17 +00:00 |  | 
			
				
					|  | 85a2bc3f0f | Add a stat for blobs stored. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4133 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-18 22:52:54 +00:00 |  | 
			
				
					|  | 3285d93576 | Expose stored connections on the connections tab.  Still half-baked, but I'm going to use this. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4132 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-18 00:57:54 +00:00 |  | 
			
				
					|  | 0f11f497ed | Expose stored connections to script, and only store connections that were explicitly requested. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4131 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-18 00:37:45 +00:00 |  | 
			
				
					|  | ce0b4de5a1 | Fix one lingering call to ssb.connectionSendJson. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4129 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-17 23:10:17 +00:00 |  | 
			
				
					|  | 134b2556ad | Oh yeah, OpenSSL on windows, too, these days. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4128 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-17 22:56:36 +00:00 |  | 
			
				
					|  | 67d34bf70e | Send history streams in batches.  Should block the main thread less. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4127 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-17 02:17:29 +00:00 |  | 
			
				
					|  | 73863f9418 | Minor error-sending cleanup.  Produce callstacks. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4126 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-15 21:23:28 +00:00 |  | 
			
				
					|  | 0cbc1a650b | Change blob_wants from a table to a view.  We can discover the information pretty fast, so let's not store extra data. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4125 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-14 23:25:56 +00:00 |  | 
			
				
					|  | b8f54f324f | Avoid sending a superfluous response, I think? git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4123 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-14 19:49:43 +00:00 |  | 
			
				
					|  | 3269c7ca45 | Use tf_ssb_connection_rpc_send_json everywhere I can.  Less code, and fixes some leaks. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4122 ed5197a5-7fde-0310-b194-c3ffbd925b24 | 2023-01-14 19:32:36 +00:00 |  |