Commit Graph

180 Commits

Author SHA1 Message Date
Charles Kerr 770ab426f6 (trunk libt) #3859 "Transmission unnecessarily writes .resume messages to Console Logs" -- fixed. 2010-12-29 04:54:06 +00:00
Charles Kerr e5bb3205a1 (trunk) Join the 21st century and use only 1 space at the end sentences. This commit is nearly as important as the semi-annual ones that remove trailing spaces from the ends of lines of code... :) 2010-12-27 19:18:17 +00:00
Charles Kerr e8c2f6cf15 (trunk libT) #3836 "libevent2 support" -- optimize serialization of json strings for libevent2's new evbuffer API. This also fixes #3843 2010-12-21 22:07:15 +00:00
Charles Kerr 345b14adbc (trunk) #3836 "libevent2 support" -- bump libevent2 requirement to 2.0.10. This will break the Mac build for a minute intil BMW applies his Mac patch 2010-12-20 02:07:51 +00:00
Charles Kerr f713451647 (trunk libT) #3531 "Pausing 500 torrents uses 650 MB of memory" -- on OS X, when saving a benc/json file, send a hint to the OS to not cache the file. 2010-12-17 15:36:31 +00:00
Charles Kerr 2ce03097ee (trunk libT) #3781 -- remove excessive bencode debug messages. 2010-12-01 04:54:18 +00:00
Charles Kerr a9e740cb2c (trunk libT) #3678 "benc walking could be more efficient" -- fixed. 2010-10-26 19:30:35 +00:00
Charles Kerr 0cf643f8c3 (trunk libT) #3614 "Can't save benc files under uClibc 0.9.31" -- on some systems, calling unlink() on a file that doesn't exist returns 0 instead of -1 + ENOENT... so don't rely on that test. Instead, call stat() before unlink()ing the file. 2010-10-11 21:27:31 +00:00
Charles Kerr 865d9d7a34 (trukn libT) call tr_close_file() instead of close() after saving a benc file to disk 2010-09-29 02:38:14 +00:00
Charles Kerr 6d445f29eb (trunk libT) #3462 "minor json formatting optimization: omit unnecessary floating-point precision" -- done. 2010-07-31 14:45:07 +00:00
Charles Kerr 254a1f15cb (trunk libT) down the rabbit hole: various minor type correctness changes unearthed by -Wconversion 2010-06-30 16:40:19 +00:00
Charles Kerr 5ad7ed550f (trunk) more win32 fixes from rb07 in #3311 2010-06-22 00:12:52 +00:00
Charles Kerr 08628333d1 (trunk libT) part of rb07's win32 portability patches from ticket #3311 2010-06-21 16:44:35 +00:00
Charles Kerr eda211e5ce (trunk) #2983: add command-line utilities for creating .torrent files, for editing passkeys, for adding/removing trackers, etc. 2010-06-16 14:27:24 +00:00
Charles Kerr 0051b8a110 re-tweak the previous commit based on feedback from kklimonda 2010-05-06 17:02:31 +00:00
Charles Kerr 2ea9f78eff (trunk libT) tweak MAX_PATH_LENGTH a little for better portability -- defer to limits.h's definition when present 2010-05-06 15:07:18 +00:00
Charles Kerr 5d272161ed (trunk libT) fix bencode.c cross-compile error on arm-based NAS reported by nahkiss. This bug was introduced in a patch to fix #3172 and was added to trunk with r10549 and 1.9x/ with r10549 2010-05-05 16:03:33 +00:00
Charles Kerr 31f4d24004 (trunk libT) #3172 "transmission overwrites settings.json" -- fixed with kklimonda's patch for 2.00 2010-04-29 18:56:34 +00:00
Charles Kerr 9c94512672 (trunk libT) don't escape the '/' character in json strings 2010-04-25 15:30:50 +00:00
Charles Kerr 539f0edaba (trunk libT) in tr_bencToFile(), call fsync() before close() for better ext4 safety 2010-03-09 22:59:14 +00:00
Charles Kerr 7e28c375c9 (trunk libt) when generating json/benc strings, preallocate some space in the evbuffer to avoid excess realloc()s 2010-02-11 00:53:50 +00:00
Charles Kerr 168770f508 (trunk libT) #2716 "magnet torrents not being saved after quit" -- fix bencode bug. 2010-02-03 14:31:12 +00:00
Charles Kerr 36d97610bd (trunk) #2802, #2716, #2717 -- remember magnet links and their settings between sessions, and allow their trackers to be modified 2010-02-02 22:45:22 +00:00
Charles Kerr 42f63a63d3 (trunk libT) #2505 "Transmission loses config when disk is full" -- better implementation than r10068's from suggestions by elbandi 2010-02-02 01:05:27 +00:00
Charles Kerr 8f0f6679aa (trunk libT) #2505 "Transmission loses config when disk is full" -- implemented in trunk for 1.90 2010-02-01 21:09:31 +00:00
Charles Kerr 1c8426cfee (trunk libT) fix some #include statements 2010-01-20 23:58:09 +00:00
Charles Kerr 9eb07e9b16 (trunk) No code changes here... filling in some of the blanks in the "peers" and "utils" doxygen groups' documentation. 2010-01-19 19:37:00 +00:00
Charles Kerr 5c26afdb52 happy new year! 2010-01-04 21:00:47 +00:00
Charles Kerr 6b8fb48d64 (trunk libT) replace the TR_INLINE macro with the standard "inline" keyword, since we require inline functions anyway 2010-01-01 22:26:35 +00:00
Charles Kerr 78ead8c3dd (trunk) update the copyright notices 2009-12-05 02:19:24 +00:00
Charles Kerr 6d008257c8 (trunk libT) minor tweaks: make bencode's int parser code more consistent; make some comments more readable 2009-12-02 15:16:29 +00:00
Charles Kerr 515a3f986f (trunk, libT) fix code in the UTF8-to-JSON serializer that could fall into an infinite loop when fed some inputs. This may be ticket #2326 or may get its own retroactive ticket, depending on feedback from #2326's reporter 2009-09-02 15:26:34 +00:00
Charles Kerr bf1a544939 (trunk) all this commit does is remove trailing whitespace from some c, c++, and javascript source 2009-08-12 14:40:32 +00:00
Charles Kerr 723cabb542 (trunk libT) prevent potential rounding errors when sending floating-point numbers across the wire in json form 2009-08-03 23:18:02 +00:00
Charles Kerr 69bbff4d92 (trunk libT) fix a couple of minor gcc warnings 2009-07-17 18:00:29 +00:00
Charles Kerr 1ae47c697d (trunk) silence some minor gcc warnings 2009-06-23 14:15:23 +00:00
Charles Kerr 6a568403d2 (trunk libT) #2179: memory allocation in benc could be more efficient 2009-06-07 17:54:28 +00:00
Charles Kerr 38a032b1bf (trunk libT) possible fix for benc/json saving issues reported in 1.70. This is a guess from rb07's post in the forums about bencode.c, and from John Clay's comments in irc 2009-06-06 19:30:32 +00:00
Charles Kerr ab56a2f7f7 (trunk libT) fix potential permissions headache when saving json/benc files 2009-06-04 15:52:54 +00:00
Charles Kerr b6f3b15f0a (trunk libT) handle windows when saving json files; use evbuffer_write() more safely 2009-06-03 21:08:54 +00:00
Charles Kerr 9513fcbe66 (trunk libT) add a bunch of comments denoting where the libevent 2.0 changes will go 2009-06-02 18:21:23 +00:00
Charles Kerr 9238fb0299 (trunk) #2131: clean up benc read/write API 2009-06-02 01:48:48 +00:00
Charles Kerr 9bfec90e43 (trunk libT) avoid about 75% of the strdup/malloc/frees in benc by using a union of char* and a small string buffer, and using the buffer if the string is small enough 2009-06-01 22:15:50 +00:00
Charles Kerr 7f85090587 (trunk) add a "source" argument to tr_jsonParse() so that if there's an error we can log the filename, or that it came from rpc, etc. 2009-06-01 18:57:37 +00:00
Charles Kerr f538b08fb3 (trunk libT) tracker.c was using tr_benc's private fields 2009-06-01 18:12:36 +00:00
Charles Kerr 62109971c5 (trunk libT) fix two trivial compiler warnings from r8562 2009-05-30 21:59:09 +00:00
Charles Kerr d1b36fee6f (trunk libT) a little bit of early futureproofing for libevent 2.0 2009-05-29 20:52:42 +00:00
Charles Kerr 80158af42f (trunk libT) #2086: JSON RPC messages can be 86% shorter, using less bandwidth and CPU 2009-05-16 15:38:47 +00:00
Charles Kerr 1c3f3acbca (trunk) add an option to the JSON generator to disable the human-readable indentations. Keep indenting the data files such as settings.json, but don't indent the messages used for RPC. This cuts the cost of deflate()ing those RPC messages by about 80%... 2009-05-16 05:51:52 +00:00
Charles Kerr 7f08a87969 (trunk libT) #2046: fix JSON bug when parsing floating point numbers in some locales 2009-05-09 18:01:29 +00:00