Charles Kerr
d370222113
(trunk libT) #2551 "when uploading to peers, prefetch local data from disk" -- prefetching performance tweak described in http://trac.transmissionbt.com/ticket/2551#comment:22 -- instead of prefetching [8..12] blocks, always prefetch 12 blocks
2009-12-05 19:30:15 +00:00
Charles Kerr
78ead8c3dd
(trunk) update the copyright notices
2009-12-05 02:19:24 +00:00
Mitchell Livingston
5fb643431e
decrease the size of the buffer for logging
2009-12-05 01:28:42 +00:00
Mitchell Livingston
8efe3f7cce
remove a redundant level check in tr_msg()
2009-12-05 01:02:37 +00:00
Charles Kerr
31a3ed1684
(trunk, qt) #2096 "magnet links" -- Add the "Copy Magnet Link to Clipboard" feature to Qt client
2009-12-03 15:23:43 +00:00
Charles Kerr
79154bac8a
(trunk) #2096 "magnet links" -- fix RPC typo introduced in r9655 and reported by KyleK
2009-12-03 12:40:23 +00:00
Charles Kerr
7537f02589
(trunk libT) #2636 : "wrong peer progress update" -- possible fix as described in comment:2
2009-12-03 03:11:22 +00:00
Charles Kerr
bb44a31423
(trunk) #2096 "Magnet Links - Extension for Peers to Send Metadata Files (BEP #9 )" -- publish tr_stat.metadataPecentComplete in the RPC so that kjg can use it in the web client
2009-12-02 20:05:19 +00:00
Charles Kerr
d1935a4812
(trunk libT)
...
11:59 < klapaucjusz> charles: net.c line 314.
11:59 < klapaucjusz> Please change the value to 8192.
12:00 < charles> okay but why?
12:00 < klapaucjusz> I'm not sure it will trigger, but having space for 4 full-sized segments is always a good idea.
12:01 < klapaucjusz> It means you have a better chance of recovering from a lost segment
2009-12-02 20:03:27 +00:00
Charles Kerr
560ecbe9bb
(trunk libT) fix implicit pointer conversion error when #included in C++
2009-12-02 19:44:01 +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
6eec59008c
(trunk libT) experimental: Reduce SO_SNDBUF and SO_RCVBUF for tracker announce/scrape messages. Reduce SO_RCVBUF for outgoing peer connections on seeding torrents.
2009-12-02 05:30:46 +00:00
Mitchell Livingston
5392b262d7
10,000 log messages is enough for anyone
2009-12-02 01:55:09 +00:00
Mitchell Livingston
ad06c660c8
cap libT's message log
2009-12-01 23:20:00 +00:00
Charles Kerr
9f347f8df1
(trunk) #2119 "daemon should reload settings.json on SIGHUP" -- reload the blocklists, too. Suggested by nano- in irc.
2009-12-01 00:07:18 +00:00
Charles Kerr
12bfde0c2b
(trunk) #1663 "crashes on shutdown if libevent loop doesn't exit soon enough" -- maybe crash less frequently now.
2009-11-30 04:58:03 +00:00
Mitchell Livingston
0563580dda
inline tr_removeElementFromArray()
2009-11-30 01:31:05 +00:00
Charles Kerr
03351e9a4e
(trunk libT) #2607 "avoid unnecessary calls to getPeerCandidates(), wasted cycles in peerIsInUse()"
2009-11-29 18:35:02 +00:00
Charles Kerr
33658647d6
(trunk libT) #2576 "IPv6 support for DHT (BEP #32 )" -- silence message "IPv6 DHT not ready." Reported by KyleK; fixed by jch
2009-11-29 18:31:36 +00:00
Charles Kerr
5c3fd1b5cc
(trunk libT) #2631 "Add webseed support to magnet links"
2009-11-29 17:49:58 +00:00
Charles Kerr
da7ab27ae2
(trunk libT) add SO_SNDBUF, SO_RCVBUF logging messages
2009-11-29 08:53:14 +00:00
Charles Kerr
a38fb59c6f
(trunk libT, gtk) #2625 "ability to create a magnet link" -- add hook for generating a magnet link from a tr_torrent, and use it in the Torrent Properties dialog in the GTK+ client
2009-11-29 08:27:55 +00:00
Charles Kerr
63027e1d5a
(trunk libT) resolve "noslashes" vs "keep_slashes" variable name inconsistency between the declaration and the definition of tr_http_escape()
2009-11-29 08:05:47 +00:00
Mitchell Livingston
4e615c55a0
trivial change to array size
2009-11-29 00:04:29 +00:00
Mitchell Livingston
87823ba99c
set two blank functions as inline
2009-11-28 22:29:41 +00:00
Charles Kerr
de0d6af06b
(trunk libT) remove unnecessary code
2009-11-28 16:25:05 +00:00
Charles Kerr
d1f9b8ddee
(trunk libT) performance improvements to peer-mgr.c's peerIsInUse()
2009-11-28 07:15:31 +00:00
Mitchell Livingston
2021706c6e
remove an unneeded static variable
2009-11-27 18:13:36 +00:00
Mitchell Livingston
8214c797c6
trivial cleanup in the logging code
2009-11-27 17:55:09 +00:00
Charles Kerr
8e7d08fc83
(trunk libT) remove unnecessary calls to tr_msgInit(). Suggested by BentMyWookie.
2009-11-27 15:32:11 +00:00
Charles Kerr
c7f061cafc
(trunk libT) make tr_msgLoggingIsActive() an inlined function. suggested by BentMyWookie
2009-11-27 15:25:14 +00:00
Charles Kerr
864ae61a70
(trunk libT) tweak the debugging message for the atom manager
2009-11-27 14:27:44 +00:00
Charles Kerr
fc0a8b7c93
(trunk) #2614 : "incorrect memory usage when not using IPv6" -- accepted dht.c + tr-dht.c patches
2009-11-27 14:18:32 +00:00
Charles Kerr
47c6ec5efa
(trunk libT) #2551 : "when uploading to peers, prefetch local data from disk" -- fix peer-msgs.c NULL pointer dereference introduced in r9514 for this ticket. Reported by Waldorf
2009-11-27 03:21:21 +00:00
Charles Kerr
d7d5bb6db7
(trunk libT) #2610 "avoid unnecessary calls to time(NULL)" -- fix new assertion error reported by John Clay and tstevens
2009-11-27 02:24:48 +00:00
Charles Kerr
e1c6b792aa
(trunk libT) #2610 "avoid unnecessary calls to time(NULL)"
2009-11-26 18:47:08 +00:00
Charles Kerr
d096b39f4b
(trunk libT) #2430 "peer atom pool grows too large" -- tweak the default atom shelf lives based on discussion in the ticket's comments section
2009-11-26 18:38:37 +00:00
Charles Kerr
cebcc3b6ef
(trunk libT) #2096 "magnet links" -- add a callback for clients to know when a magnet torrent's metainfo is finished downloading.
2009-11-26 17:58:44 +00:00
Charles Kerr
931afc7d2a
(trunk libT) fix variable name oops
2009-11-26 16:53:45 +00:00
Charles Kerr
909d2183be
(trunk libT) fix size_t-to-int compiler warning
2009-11-26 06:16:08 +00:00
Charles Kerr
1101f6710e
(trunk libT) #2430 "Peer atom pool grows too large" -- add an atom expiration system along the lines of the suggestions in this ticket's comments. jch and KyleK, let me know if you think anything in this commit needs improvement.
2009-11-26 05:13:58 +00:00
Charles Kerr
cf69b11031
(trunk libT) #2595 : "file too large error?" -- this can generate an EFBIG warning sparse preallocation is on and the peer makes an invalid request. At worst this kind of oddball case should generate a debug message notice, not a torrent error. Reported by Waldorf.
2009-11-25 19:26:30 +00:00
Charles Kerr
04011d212b
(trunk libT) #2110 : "allow adding torrents with no trackers" -- fix crash in tr_torrentSetAnnounceList() when the new number of trackers is 0. Reported by Rolcol.
2009-11-25 18:57:54 +00:00
Charles Kerr
f585379bed
(trunk libT) silence implicit size_t-to-int compiler warning
2009-11-25 17:21:11 +00:00
Charles Kerr
197cf649bf
(trunk) more magnet work. fix a couple of bugs reported by rolcol: (1) crash with incomplete dir + magnet links; (2) dialog focus issue in the gtk client
2009-11-25 08:22:57 +00:00
Charles Kerr
4df666bb22
(trunk libT) #2110 : "allow adding torrent files with no trackers" -- tr_torrentParse() shouldn't fail just because there aren't any announce URLs in the metadata
2009-11-25 05:13:58 +00:00
Charles Kerr
5e51618f83
(trunk libT) fix the resume files' "percent done" bug that was introduced yesterday with the magnet link commit
2009-11-25 05:10:27 +00:00
Mitchell Livingston
358160f7ae
tr_cpPercentComplete() considers cases where size is 0
2009-11-25 05:01:51 +00:00
Charles Kerr
018e4b1330
(trunk libT) fix minor trunk-only memory leak of the tr_session::incompleteDir string
2009-11-25 04:44:12 +00:00
Charles Kerr
3799fa2ec7
(trunk libT) more work on magnet links.
2009-11-25 04:12:55 +00:00
Charles Kerr
78a2d66e15
(trunk libT) fix magnet code memory leak
2009-11-24 19:45:36 +00:00
Charles Kerr
034023f148
(trunk libT) fix another edge case for magnet links
2009-11-24 19:08:13 +00:00
Charles Kerr
c0fa9c5e9d
(trunk libT) fix bitset crash. add bitset.h to the automake file.
2009-11-24 18:22:57 +00:00
Charles Kerr
c102f199c3
(trunk libT) don't allow duplicate torrents to be added via magnet links
2009-11-24 17:31:20 +00:00
Charles Kerr
3610c5ea62
(trunk) more magnet fixes
2009-11-24 17:10:40 +00:00
Charles Kerr
d98666e740
(trunk libT) simple fix from jch
2009-11-24 15:55:21 +00:00
Charles Kerr
d5ae900e4e
(trunk) #2096 "magnet links": in libT, cleanup. in GTK+ client, add different status text in the main window for magnet torrents: "downloading .torrent data"
2009-11-24 15:51:16 +00:00
Charles Kerr
8ea0aa2845
(trunk libT) oops
2009-11-24 03:37:54 +00:00
Charles Kerr
f69e335291
(trunk) #2096 : Magnet, BEP #9 support
2009-11-24 02:16:31 +00:00
Charles Kerr
1cbbcf9fa1
(trunk libT) jch's patches 0001 through 0004 for ticket #2576 , IPv6 support for DHT (BEP #32 )
2009-11-24 01:59:51 +00:00
Charles Kerr
4322837189
(trunk) remove dead code
2009-11-23 21:57:10 +00:00
Charles Kerr
94a48c4c81
(trunk libT) a very minor commit. remove trailing spaces from lines and other stuff like that
2009-11-22 03:57:36 +00:00
Mitchell Livingston
be85dc0fac
a couple of more swarm speed removals
2009-11-22 01:12:44 +00:00
Mitchell Livingston
2b492cdb6e
#2592 remove swarm speed from libtransmission
2009-11-22 01:03:36 +00:00
Charles Kerr
ec08e333a2
(trunk libT) fix a stupid trunk-only bug that messed up which peer requests we responded to. maybe this has something to do with the slower speeds Rolcol's seeing?
2009-11-22 00:52:11 +00:00
Mitchell Livingston
9dc679ab58
Display the proper seeder/leecher/download count for backup trackers, instead of all zeros.
2009-11-21 03:13:27 +00:00
Charles Kerr
22f7a64aa2
(trunk libT) #2575 : PEX is not meant to do forwarding
2009-11-20 07:47:31 +00:00
Charles Kerr
9383a6abfd
(trunk libT) #2096 : add code magnet URL parser and unit tests
2009-11-20 04:38:19 +00:00
Charles Kerr
4b563b7bde
(trunk libT) #2589 : similar to r9529, just removing more redundant calls to time(NULL)
2009-11-19 20:31:34 +00:00
Charles Kerr
2b71014888
(trunk libT) #2589 : unnecessary calls to time() cause high CPU load
2009-11-19 03:00:20 +00:00
Mitchell Livingston
446b10071d
clean up bitspirit a bit more
2009-11-16 23:29:26 +00:00
Mitchell Livingston
e0b9d93ea4
add yet another BitSpirit peer id
2009-11-16 23:14:47 +00:00
Charles Kerr
06004319d7
(trunk) #2222 : revert r8967, as foreshadowed in http://trac.transmissionbt.com/ticket/2222#comment:20
2009-11-14 14:43:31 +00:00
Charles Kerr
1fbcab8880
(trunk libT) make tr_findTorrentFromHash() a public API
2009-11-13 16:41:00 +00:00
Charles Kerr
a2c4c0381d
(trunk libT) reduce the time we wait for a handshake to complete from 60 seconds to 30.
2009-11-12 05:30:04 +00:00
Charles Kerr
cf66227f0d
(trunk libT) #2573 : Don't send BT_PORT messages over IPv6
2009-11-12 01:59:53 +00:00
Charles Kerr
c086da3656
(trunk libT) silence a gcc warning
2009-11-11 01:03:06 +00:00
Charles Kerr
6ad33534e7
(trunk libT) tweak high/normal/low priority peer bandwidth allocation
2009-11-10 19:35:06 +00:00
Charles Kerr
1f0fdba2e8
(trunk libT) #2551 : when uploading to peers, prefetch local data from disk
2009-11-10 17:26:04 +00:00
Charles Kerr
44df1d5548
(trunk libT) #2112 : provide "ipv6=" parameter to trackers
2009-11-10 17:03:23 +00:00
Charles Kerr
03e9189333
(trunk libT) #2572 : don't send empty dictionaries when PEXing
2009-11-10 16:32:14 +00:00
Mitchell Livingston
185728c66c
remove unused variable
2009-11-09 13:29:02 +00:00
Charles Kerr
6f54cb01e6
(trunk libT) #2552 "torrent state doesn't change automatically anymore" new version of r9482 that doesn't have the problems pointed out in #2557
2009-11-09 06:36:47 +00:00
Charles Kerr
225384fcc5
(trunk libT) #2502 : announce own IPv6 address to peers
2009-11-09 05:45:16 +00:00
Mitchell Livingston
48227fdfe1
eliminate setting an unnecessary null character
2009-11-09 05:08:59 +00:00
Charles Kerr
3759c98d76
(trunk libT) #2551 "better buffer cache management": apply jch's prefetch-base.patch
2009-11-08 23:43:38 +00:00
Charles Kerr
b906c125ac
(trunk libT) #2548 : T's request queue can send out too many duplicate requests
2009-11-08 23:20:00 +00:00
Charles Kerr
bccaf64e55
(trunk libT) #2558 : "build failure in r9484"
2009-11-06 12:53:05 +00:00
Charles Kerr
acc0ded449
(trunk libT) undo #2552 's commit r9482 because it causes new problems. #2552 will need a different fix instead.
2009-11-05 15:41:54 +00:00
Charles Kerr
45e84d9ac6
(trunk libT) #2552 : Torrent state doesn't change automatically anymore
2009-11-05 01:31:35 +00:00
Mitchell Livingston
288a6d143a
fix BitLet peer id
2009-11-04 13:16:53 +00:00
Charles Kerr
197ccfff98
(trunk libT) #2554 : JSON_int_t won't use "long long int" unless STDC_VERSION is defined
2009-11-04 03:41:59 +00:00
Mitchell Livingston
dd5fa2e6b8
more typo fixes
2009-11-04 02:45:58 +00:00
Mitchell Livingston
77d7a53181
fix typo
2009-11-02 01:40:26 +00:00
Mitchell Livingston
aac02231c4
4.3 not 4.2
2009-11-02 01:10:04 +00:00
Mitchell Livingston
a43b73aad0
only mark a function as hot when compiled with GCC >= 4.3
2009-11-02 01:09:11 +00:00
Charles Kerr
4d817b0701
(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...(trunk libT) undo r9465 + r9466, which was the experimental new request manager. It still still needs some tinkering before it's ready for the nightlies...
2009-11-02 00:17:30 +00:00
Charles Kerr
296411e093
(trunk libT) turn off a debugging message in the terminal
2009-11-01 03:56:10 +00:00
Charles Kerr
0a4d8602e0
(trunk libT) #2548 : T's request queue can send out too many duplicate requests
2009-11-01 02:10:47 +00:00
Charles Kerr
37dda955a1
(trunk libT) use __attribute__((nonnull)) where appropriate. remove two unused functions tr_int2ptr(), tr_ptr2int()
2009-11-01 01:35:06 +00:00
Charles Kerr
060bd2f722
(trunk libT) #2547 : fix tr_lowerBound()
2009-10-31 22:16:06 +00:00
Charles Kerr
3a75050be4
(trunk libT) undo all the test commits for #2533 from r9445 through r9451. The problem appears to be an llvm issue, reported upstream @ apple dev center bug #7353773
2009-10-31 00:54:03 +00:00
Charles Kerr
7113ae2502
(trunk libT) BANG
2009-10-30 22:03:32 +00:00
Charles Kerr
9ae5ce0bf8
(trunk libT) tear out another line of code. subtle, this isn't. this is like figuring out which neighbor is stealing your newspaper in the morning by secretly shooting a different neighbor each morning until the paper stops disappearing.
2009-10-30 21:51:59 +00:00
Charles Kerr
66eac308ef
(trunk libT) still banging along at #2533
2009-10-30 21:41:41 +00:00
Charles Kerr
632f98c8fd
throwing darts in the dark. this smells like a compiler bug.
2009-10-30 17:29:51 +00:00
Charles Kerr
8bdaedc723
(trunk libT) lather, rinse, repeat
2009-10-30 17:17:53 +00:00
Charles Kerr
586deb9d12
(trunk libT) Adding term debug messages to help track down #2533 w/m1b and *acrocivious
2009-10-30 16:46:33 +00:00
Charles Kerr
a7361372c3
Adding term debug messages to help track down #2533 w/m1b
2009-10-30 16:24:58 +00:00
Charles Kerr
08e936704c
(trunk libT) fix signed/unsigned comparison warnings on amd64
2009-10-30 14:53:17 +00:00
Charles Kerr
a34d742e36
(trunk libT) OS X fix for tr_torrentDeleteLocalData() -- .DS_Store gave it trouble
2009-10-30 04:23:51 +00:00
Charles Kerr
f5b97d43c9
(trunk libT) portability improvements to tr_moveFile()
2009-10-30 03:53:41 +00:00
Charles Kerr
ea072953c5
(trunk libT) one-liner fix for #2544 (launchpad 458735): crash in port forwarding if evtimer gets deleted
2009-10-30 03:20:53 +00:00
Charles Kerr
d60fa654cb
(trunk libT) fix regression introduced by #2539 that caused single-file torrents to not be deleted even if the user requested it
2009-10-30 02:58:30 +00:00
Charles Kerr
35d8a00912
(trunk libT) another hammer-the-network-less patch like r9414
2009-10-29 18:11:10 +00:00
Charles Kerr
c61f8987de
(trunk libT) #2538 startup takes too long
2009-10-29 17:25:03 +00:00
Charles Kerr
b5042148e8
(trunk libT) #2539 : "incomplete folder" feature may lead to deleted files
2009-10-29 17:00:22 +00:00
Charles Kerr
3680896a19
(trunk libT) #2508 atom->port never updated
2009-10-29 16:10:03 +00:00
Charles Kerr
c9b071015f
(trunk libT) #2530 : Announce attempt to invalid tracker occurs too often
2009-10-28 04:53:39 +00:00
Charles Kerr
4b804e32ed
(trunk libT) another tweak to tr_torrentSetLocation()
2009-10-28 04:50:37 +00:00
Mitchell Livingston
693897ce4c
BitTorrent Embedded -> SDK
2009-10-28 03:48:54 +00:00
Mitchell Livingston
c0d68a06c9
add "BitTorrent Embedded" to client list
2009-10-28 03:31:02 +00:00
Charles Kerr
22e3f1175a
(trunk libT) #2531 : when the user moves a torrent from one location to another, we don't need to reverify if the files are just rename()d
2009-10-27 23:00:34 +00:00
Charles Kerr
087f75e1ce
(trunk libT) #2518 : overzealously alarmist re unresponsive trackers
2009-10-27 21:03:13 +00:00
Charles Kerr
bcce43021f
(trunk libT) fix #2534 : if port forwarding is disabled, tr_sessionClose() closes a random file descriptor
2009-10-27 20:29:02 +00:00
Charles Kerr
858e691381
(trunk libT) add a wrapper function, tr_netCloseSocket(), around EVUTIL_CLOSESOCKET() so that not all of our code has to #include evutil
2009-10-27 20:27:27 +00:00
Charles Kerr
7a4f22ba12
(trunk libT) use part of hexum's patch from < http://forum.transmissionbt.com/viewtopic.php?p=41572#p41572 >. The part added sorts peers by their overall speed when deciding which ones to disconnect from first, and which to request from first.
2009-10-27 20:06:55 +00:00
Charles Kerr
2acc006807
(trunk libT) There seems to be a lot of talk about T hosing routers, preventing other network traffic, etc. As an experiment let's try reducing the number of new connections we allow per second and see if/how that affects performance.
2009-10-27 16:08:38 +00:00
Mitchell Livingston
130c9af1d1
on second thought, the other UI's might want this value sooner or later, and it's cheaper to calculate it in the stat function
2009-10-25 18:49:20 +00:00
Mitchell Livingston
a5e0b6e5b2
since the Mac UI is the only one to use it, move percentRatio calculation into the Mac code
2009-10-25 18:45:35 +00:00
Mitchell Livingston
9254de1a36
smooth out the upload eta the same way as the download eta
2009-10-25 02:42:57 +00:00
Mitchell Livingston
47e19c4410
when calculating the "smoothed" eta, 1. only factor in previous speeds when those speeds were recent (ie. if we just resumed from pause, discard the previous speed) and 2. factor in if the speed was 0 as well
2009-10-25 02:36:03 +00:00
Charles Kerr
55c59fa478
(trunk) fix r9380 #2412 timing issue
2009-10-23 05:48:56 +00:00
Charles Kerr
37aaf66d4e
(trunk) #2527 : daemon should log messages to syslog
2009-10-23 05:00:16 +00:00
Charles Kerr
c85ee09fef
(trunk) trunk's just been too stable lately. #2119 : reload settings.json on SIGHUP
2009-10-23 03:41:36 +00:00
Charles Kerr
00197cc461
(trunk libT) undo today's earlier commit r9381 for #2508 -- looks like I introduced a bug into the patch.
2009-10-22 19:08:45 +00:00
Charles Kerr
73222ce7aa
(trunk libT) revert r9345, because all our .torrent and .resume files' hex letters are in lowercase
2009-10-22 18:48:26 +00:00
Charles Kerr
bb541fc8d6
(trunk libT) #2508 : atom->port never updated
2009-10-22 15:05:56 +00:00
Charles Kerr
9affe9ef59
(trunk libT) #2412 : tracker query should use bind address
2009-10-22 05:15:34 +00:00
Charles Kerr
baa860e6ce
(trunk libT) #2518 : r9334 overzealously alarmist wrt unresponsive trackers
2009-10-22 01:28:39 +00:00
Charles Kerr
d9e4ddab1f
(trunk libT) #2510 : port messages not sent for outgoing peer connections
2009-10-22 01:03:17 +00:00
Mitchell Livingston
236bdc594f
#2524 torrent peer limit not saved right away
2009-10-21 23:32:02 +00:00
Charles Kerr
c59ae60488
libT doesn't need to create the Incomplete directory until it's needed
2009-10-21 19:33:37 +00:00
Charles Kerr
adfb6f70a1
(trunk libT) show sha1's hex letters in uppercase, as suggested by waldorf
2009-10-21 16:24:58 +00:00
Charles Kerr
95989a0b21
(trunk libT) add callback notification when a torrent has been moved via RPC
2009-10-21 14:02:02 +00:00
Charles Kerr
0c53f3fa62
(trunk libT) add a couple of hooks for the mac client to use when migrating from its earlier move-on-complete code
2009-10-21 05:03:10 +00:00
Charles Kerr
8d1d91499a
(trunk libT) #2520 : tor->isRunning is not always saved to .resume file
2009-10-21 02:45:49 +00:00
Charles Kerr
eef6177f0a
(trunk libT) #1483 : fix bug introduced in r9328
2009-10-20 20:19:41 +00:00
Charles Kerr
0df58b9ab4
(trunk libT) change the new public API a little bit -- clearer, but a little wordier
2009-10-20 04:43:51 +00:00
Charles Kerr
7b5dcdf6d1
(trunk libT) semi-paranoid safeguard: when searching for a torrent's file, look for finished versions (normal filename) before unfinished ones (with the .part suffix). In the unlikely event of a bug where both exist, it's better for Transmission to use the finished one...
2009-10-20 04:15:10 +00:00
Charles Kerr
27b9f6e27d
(trunk libT) make the ".part" suffix an optional feature as per BMW's request. Clean up the code a little.
2009-10-20 03:14:44 +00:00
Charles Kerr
5a96ee9fc4
(trunk libT) make tr_torrentFindFile() a public API
2009-10-19 13:55:42 +00:00
Charles Kerr
6af5b7691e
(trunk libT) make tr_torrentFileCompleted() safe for older torrents that were incomplete before the ".part" feature was added
2009-10-19 13:15:46 +00:00
Charles Kerr
c35beb3843
(trunk) #1483 : move completed torrents to a user-specified directory
2009-10-19 05:25:50 +00:00
Charles Kerr
05c77cc975
(trunk) #1483 : move completed torrents to a user-specified directory + #629 : different file extension for incomplete files
2009-10-19 05:05:00 +00:00
Charles Kerr
d6acde35d3
(trunk libT) #2360 : ratio-limit becomes a strange value on uClibc
2009-10-14 13:22:42 +00:00
Charles Kerr
2e3a3e60aa
(trunk libT) #2498 : DHT broken
2009-10-12 23:16:51 +00:00
Charles Kerr
3da08652ba
(trunk libT) #2494 : Adding a tracker changes announce status from time to "queued."
2009-10-12 06:08:28 +00:00
Mitchell Livingston
2af26e1d7c
#2488 when sorting by tracker, first use the tracker that comes first alphabetically
2009-10-11 13:42:10 +00:00
Charles Kerr
fde3abaa1e
(trunk libT) fix scrape status string error reporte by bmw
2009-10-11 04:39:24 +00:00
Charles Kerr
504eaa6410
(trunk, libT) #2425 : New torrents are verified after pause.
2009-10-11 03:10:17 +00:00
Mitchell Livingston
4290927563
retain previous announce/scrape info when a tracker becomes a backup
2009-10-10 20:46:24 +00:00
Mitchell Livingston
2730f9ac9c
finish #2463
2009-10-10 20:25:05 +00:00
Charles Kerr
b7677f7059
(trunk libT) #2463 if at first you don't succeed...
2009-10-10 20:14:26 +00:00
Charles Kerr
fe2d851e5b
(trunk libT) #2489 : stricter checking of fringe cases in tr_torrentSetAnnounceList()
2009-10-10 19:39:43 +00:00
Charles Kerr
2a22e1782f
(trunk libT) #2489 : tr_torrentSetAnnounceList() should check for invalid and duplicate announce URLs
2009-10-10 19:16:21 +00:00
Charles Kerr
0fd817b757
(trunk libT) more assertions to help find the cause of #2480
2009-10-10 17:37:34 +00:00
Charles Kerr
61042404ad
(trunk) replace tr_tracker_stat's "isActive" field with the more descriptive "isBackup"
2009-10-10 00:17:00 +00:00
Charles Kerr
f607c7591a
(trunk) #2463 : 'Mac Client shows huge "next announce in" timer'
2009-10-09 21:30:34 +00:00
Charles Kerr
f92fd55a80
(trunk libT) add a couple more debugging assertions into the nightlies to try & smoke out the handshake/peer-io crashes
2009-10-09 20:06:22 +00:00
Charles Kerr
5b19021ab1
(trunk libT) #2393 : Transmission deletes all files when moving to the same physical directory
2009-10-07 03:49:55 +00:00
Charles Kerr
90d612f9a9
(trunk libT) remove randOffset from announcer; the new announce queue handles load balancing
2009-10-03 14:08:05 +00:00
Charles Kerr
aad2a886be
fix oops
2009-10-03 13:17:18 +00:00
Charles Kerr
412f0b40a2
(trunk libT) fix a crash reported by John Clay and silence a gcc warning
2009-10-03 13:15:32 +00:00
Charles Kerr
21bd104bda
(trunk libT) #2471 : added/removed trackers aren't applied until restart
2009-10-02 04:54:02 +00:00
Charles Kerr
b9a4f418ed
(trunk, libT) filter out unsupported announce addresses
2009-10-02 02:03:30 +00:00
Charles Kerr
5819ffc2d8
(trunk, libT) #2464 : Mac Client shows incorrect announce/scrape results for backup trackers
2009-09-30 20:49:52 +00:00
Charles Kerr
d08ab9e510
(trunk libT) #2429 : add some more assertions to help smoke out this bug
2009-09-28 18:22:57 +00:00
Mitchell Livingston
79b5c3e596
show N/A for peer counts when there hasn't been a scrape/announce yet
2009-09-28 15:16:23 +00:00
Charles Kerr
b32e5cc25d
(trunk libT) #2450 : --find should not delete original
2009-09-27 18:48:00 +00:00
Charles Kerr
a2b8588206
(trunk libT) possibly fix a crash-on-shutdown reported by John_
2009-09-27 00:27:51 +00:00
Charles Kerr
79035d3b83
(trunk libT) possibly fix a crash-on-shutdown reported by John_
2009-09-26 23:54:30 +00:00
Charles Kerr
9bf4c599b8
(trunk libT,gtk) plug a couple of minor leaks reported by valgrind
2009-09-26 23:46:30 +00:00
Charles Kerr
459bea37f9
(trunk libT) remove a couple more debugging printf() calls
2009-09-26 13:21:46 +00:00
Charles Kerr
681584e58e
(trunk libT) possibly fix a crash reported by stdisease
2009-09-26 06:43:44 +00:00
Charles Kerr
4a09a1de13
(trunk) remove tr_stats fields: downloaders, leechers, seeders, timesCompleted as per discussion with livings
2009-09-26 06:20:33 +00:00
Charles Kerr
d7c4537f2a
(trunk, libT) #2379 : infinite ratio shows as nan, invalid json
2009-09-26 04:24:45 +00:00
Charles Kerr
52f212fc9a
(trunk libT) remove some debug printfs
2009-09-26 04:13:09 +00:00
Charles Kerr
28e119c1bb
(trunk) copy-by-value changes to tr_tracker_stat
2009-09-26 03:36:58 +00:00
Charles Kerr
5b46b63b23
(trunk gtk) implement 'edit trackers' window in gtk client
2009-09-26 00:48:07 +00:00
Charles Kerr
86ada18266
(trunk)
...
#1699 : Announce to multiple trackers at once
#2424 : Tracker address is not listed in GTK client.
2009-09-25 21:05:59 +00:00
Charles Kerr
172d64c32c
(trunk libT) #2416 : possible fix for 'crash in event_queue_insert' on Snow Leopard
2009-09-23 15:28:11 +00:00
Charles Kerr
6656c6d71e
(trunk libT) #2420 - Transmission should follow PEX conventions
2009-09-17 19:05:18 +00:00
Charles Kerr
034d14639a
(trunk libT) use tr_torrentName() instead of tor->info.name
2009-09-17 03:24:35 +00:00
Charles Kerr
9b9c910d67
when creating a new torrent and a tracker announce URL can't be parsed, set a variable so that the client can learn which announce URL was the bad one
2009-09-17 01:18:59 +00:00
Charles Kerr
ff260ee2fb
(trunk libT) fix a couple of compiler warnings from the last commit.
2009-09-10 03:28:55 +00:00
Charles Kerr
19b3a84133
(trunk libT) fix oops
2009-09-10 03:07:54 +00:00
Charles Kerr
fb83a0464e
(trunk libT) #2395 : caching too many peers between sessions makes startup slow and uses too much memory (KyleK, stdisease, et al)
2009-09-10 02:20:35 +00:00
Charles Kerr
fa1fa11fdb
(trunk, libT) #2390 : when you add a new torrent while one is verifying local data, the new torrent will be added on wait list, rather than download automatically. (Reported by Adys in irc)
2009-09-09 12:44:11 +00:00
Charles Kerr
9af75365d2
(trunk libT) a test commit -- possible fseek fix for Rabbitbunny
2009-09-09 03:23:50 +00:00
Charles Kerr
9a02f9e48e
fix r9073 oops; I committed a few debugging changes by accident too
2009-09-08 20:02:51 +00:00
Charles Kerr
b7821bfb16
delete the obsolete zsh bindings
2009-09-08 20:01:12 +00:00
Charles Kerr
3524ae637e
(trunk libT) sync the announce/scrape timeout intervals in trunk with those in 1.7x
2009-09-08 18:39:20 +00:00
Charles Kerr
c7e2a29f57
add better logging to track down tr_ioRead() error messages reported by Rabbitbunny
2009-09-08 06:25:40 +00:00
Charles Kerr
bd41421591
decide at runtime, rather than compile time, whether to use curl_multi_action
2009-09-08 05:18:46 +00:00
Charles Kerr
600e2d26ec
(trunk libT) make tr_ptrArrayErase() private
2009-09-07 21:57:15 +00:00
Charles Kerr
0ef34b64b7
(trunk, libT) sibling to r9027, remove more unused code
2009-09-07 06:23:15 +00:00
Charles Kerr
e22922f682
(trunk libT) disable the sorted ptrArray assertions in non-mac release builds
2009-09-06 22:52:13 +00:00
Charles Kerr
c930f805cb
(trunk libT) #2383 : Faster verification for local data with small piece size
2009-09-06 14:05:06 +00:00
Charles Kerr
44d785f9ca
(trunk libT) #2284 : crashes when some invalid torrents are added. reported by Flemzard in irc
2009-09-05 16:51:22 +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
1184d58302
(trunk libT) revert r9026 from ticket #2357
2009-09-01 03:42:16 +00:00
Charles Kerr
be98310bb5
remove unused code
2009-08-31 23:31:43 +00:00
Charles Kerr
78b23a933d
(trunk libT) #2357 : the "upload_only" key sent in PEX should also be sent to trackers
2009-08-31 18:33:25 +00:00
Charles Kerr
fdc61b0d0b
(trunk libT) #2373 : Handle HTTP redirects more gracefully
2009-08-31 17:18:58 +00:00
Charles Kerr
23b3faada4
(trunk libT) #2372 : 'Unregistered Torrent Pass' Pauses Download
2009-08-31 16:41:54 +00:00
Charles Kerr
ed512c215f
(trunk, libT) #2365 : Peer settings for an individual torrent should override the global limit.
2009-08-31 15:59:43 +00:00
Charles Kerr
ae9e59c8af
add KGet to the clients list
2009-08-29 14:42:58 +00:00
Charles Kerr
6a2de9864d
fix --disable-dht error in 1.74 reported by DimStar
2009-08-25 13:55:32 +00:00
Charles Kerr
786887b147
(trunk libT) tell libcurl to set a time limit of 120 seconds for announces; 30 seconds for scrapes
2009-08-22 23:22:50 +00:00
Charles Kerr
e7a4ee9d82
(trunk) un-remove the conditional DHT compiling for now for reasons discussed @ http://lists.opensuse.org/opensuse-gnome/2009-08/msg00033.html . I'll re-remove it for 1.80. :)
2009-08-18 16:02:16 +00:00
Charles Kerr
6dedb0433b
(trunk libT) better throttling back of outgoing download requests when speed limits are turned on
2009-08-18 01:57:17 +00:00
Erick Turnquist
fbfaeda8df
(trunk libT): do EAFNOSUPPORT check on socket() errno on all platforms
2009-08-17 18:49:21 +00:00
Charles Kerr
14dfd896ba
(trunk libT) a debugging message was accidenally being dumped to the terminal. Reported by ubuntuforums user "Nevermor7" in < http://ubuntuforums.org/showpost.php?p=7743702&postcount=1 >
2009-08-16 21:09:08 +00:00
Charles Kerr
37a4a5c68e
(trunk libT) fix pause-on-shutdown bug reported by KyleK and introduced in r8878 for #2317 .
2009-08-15 21:09:06 +00:00
Charles Kerr
1c5b344c85
(trunk libT) remove dead code noticed by geirha
2009-08-15 15:52:10 +00:00
Charles Kerr
f7129f2f30
(trunk libT) #2335 : when verifying local data, pause a few msec between pieces to give the system some breathing room and other processes a shot at the disk IO
2009-08-14 20:55:22 +00:00
Charles Kerr
30bc1c6e7a
(trunk libT) revision to r8910 for #2162 : check to see if a field's value has actually changed before setting the "dirty" flag.
2009-08-14 14:41:59 +00:00
Charles Kerr
61e95595b8
(trunk) move tr_lockfile from libtransmission/ to gtk/, since the gtk client is the only one who uses it anymore
2009-08-14 12:53:08 +00:00
Charles Kerr
d318f1f0b8
(trunk libT) revision of r8915 for #1765 : give the same user-level warning message if T first notices that a torrent's disappeared when it's doing a tr_torrentVerify()
2009-08-13 19:28:06 +00:00
Charles Kerr
9d0760e58c
(trunk libT) revision of r8915 for #1766 : flag the warning message for translation.
2009-08-13 17:56:50 +00:00
Charles Kerr
deb25906d0
(trunk libT) fix #1765 : "if a downloaded file disappears, stop the torrent instead of redownloading it"
2009-08-13 17:50:41 +00:00
Charles Kerr
11717de1d0
(trunk libT) fix #2332 : filesystem-based error messages lack context
2009-08-13 17:25:26 +00:00
Charles Kerr
d08d53d8ed
(trunk libT) make the RPC 409 error message easier to understand
2009-08-13 16:50:50 +00:00
Charles Kerr
784464450a
(trunk libT) fix #2162 : .resume file doesn't get saved often enough when its contents change
2009-08-13 14:47:56 +00:00
Charles Kerr
8e4d837967
(trunk, libT) fix for #2269 ("error message cleared unexpectedly"): a successful scrape clears the error message, and there's no point in scraping an error torrent anyway, so don't scrape until the torrent's error is cleared by a successful announce.
2009-08-12 20:12:52 +00:00
Charles Kerr
306d26a97c
(trunk libT) very minor tweak: tr_httpIsValidURL() should return a tr_bool, not an int.
2009-08-12 19:44:32 +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
Mitchell Livingston
8a7c68194e
add another missing peer id
2009-08-12 11:34:07 +00:00
Charles Kerr
cf9c9a3e0b
(trunk libT) another revision for preventing the bug in #2297
2009-08-12 04:36:59 +00:00
Charles Kerr
97ca8eab39
(trunk libT) possible fix for #2297 by removing potential thread issue in tr_torrentVerify()
2009-08-12 04:08:25 +00:00
Charles Kerr
c88dd2de12
(trunk libT) in tr_torrentStar(), there's no need to reload the progress after #2317 's changes in r8878
2009-08-12 03:56:53 +00:00
Charles Kerr
57716a0950
(trunk libT) #2211 : Behaviour when tracker barfs
2009-08-11 21:31:33 +00:00
Charles Kerr
cb79214854
(trunk) remove trailing spaces
2009-08-10 20:04:08 +00:00
Charles Kerr
6fd19fa096
(trunk) remove the option to build without DHT. This is because of new & improved information wrt ticket #2222
2009-08-10 16:09:25 +00:00
Charles Kerr
5d1f1eb8ce
(trunk libT) committed patfch from gornack (proofed by juliusz) for ticket #2312 to use the bind-address-ipv4 setting in the DHT announce
2009-08-07 14:47:46 +00:00
Charles Kerr
1419d4b8a1
(trunk libT) #2281 : add logging related to DHT (Patch from Juliusz)
2009-08-07 14:38:09 +00:00
Charles Kerr
b2e26ea90a
(trunk libT) #2318 : improve the peer lists used in the .resume file and in PEX
2009-08-07 05:41:33 +00:00
Charles Kerr
24bb159bfe
(trunk libT) #2137 : .resume file gets saved too frequently
2009-08-07 05:29:37 +00:00
Charles Kerr
67c1c6db95
(trunk libT) possible fix for #2301 , which is a valgrind complaint about uninitialized memory being written to disk while saving the bencoded .resume file. this commit theorizes that the warning is caused by not zeroing out the tr_peer array before filling it, so the extra bits in tr_addresses' ipv4/ipv6 union were never initialized. if this theory is correct, this commit (which zeros the memory first) should fix the bug.
2009-08-07 00:58:34 +00:00
Charles Kerr
6a2879f0ee
(trunk libT) fix r8871 oops
2009-08-05 02:07:51 +00:00
Charles Kerr
1c3b53244d
(trunk) clean up the return value of tr_torrentParse()
2009-08-05 01:59:16 +00:00
Charles Kerr
a4767894e7
(trunk) #1400 , #2308 : differentiate warnings and errors; differentiate between local messages and messages from the tracker
2009-08-05 01:25:36 +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
87a7bf043a
(trunk libT) possible fix for #2238 as suggested by kjg
2009-08-03 16:24:44 +00:00
Charles Kerr
55cd3a8367
(trunk libT) back out r8765. xref: http://trac.transmissionbt.com/ticket/2253#comment:13
2009-07-18 01:09:56 +00:00
Charles Kerr
69bbff4d92
(trunk libT) fix a couple of minor gcc warnings
2009-07-17 18:00:29 +00:00
Charles Kerr
12f8339406
(trunk libT) remove dead code
2009-07-17 17:23:03 +00:00
Mitchell Livingston
ca62075c31
revert r8745
2009-07-17 11:20:30 +00:00
Charles Kerr
202e593f8d
(trunk libT) add tr_truncd() unit test
2009-07-14 20:35:48 +00:00
Charles Kerr
e5ff7d8f3e
(trunk) #2271 : rounding problem in printf()
2009-07-14 20:09:46 +00:00
Charles Kerr
f443d6d113
(trunk libT) update JSON_parser.c: has UTF16 fix
2009-07-13 22:52:08 +00:00
Eric Petit
bc3ffac45b
Set some sensible default folders for Haiku
2009-07-09 18:18:14 +00:00
Eric Petit
67440b9286
Don't assume that errnos are positive (they are not on Haiku), and
...
pass them on through an additional parameter if needed
2009-07-09 18:14:33 +00:00
Eric Petit
ff50449d33
Only use libm if it's there and needed
2009-07-09 17:57:31 +00:00
Charles Kerr
5f9c5b553c
maybe 1024 is too stringent here
2009-07-07 01:18:53 +00:00
Charles Kerr
33b45e72c6
(trunk libT) fix r8781 oops
2009-07-06 12:27:24 +00:00
Charles Kerr
90097785ca
(trunk libT) #1841 : Transmission doesn't stick to maximum peer limits
2009-07-05 18:28:36 +00:00
Charles Kerr
5917436e60
(trunk libT) remove dead code
2009-07-04 04:33:23 +00:00
Charles Kerr
4723b4a6e4
(trunk libT) make TR_PREALLOCATE_SPARSE the default value -- too many people are asking why Transmisson "freezes" when it starts downloading a torrent. In the future it would be better to frame the choice between FAST and FULL instead of SPARSE and FULL. this should be revisited later when glibc's fallocate() is widely available and ext4 is more common.
2009-07-03 22:22:01 +00:00
Charles Kerr
1104a4bf4d
(trunk libT) dead code removal
2009-07-03 19:45:29 +00:00
Charles Kerr
8970fb14cb
(trunk libT) better version of r8775
2009-07-03 14:37:27 +00:00
Charles Kerr
056bba353a
(trunk libT) #2263 : Night of the Living Dead (removed and deleted torrents keep coming back)
2009-07-03 14:31:31 +00:00
Charles Kerr
48b460c0c3
(trunk libT) #2261 : Save memory by not initializing the RPC server's zlib stream until it's needed
2009-07-02 20:20:00 +00:00
Charles Kerr
5258ac0a83
(trunk libT) #2234 : add support for setting the file creation umask
2009-07-02 02:37:49 +00:00
Charles Kerr
1e6902a328
(trunk libT) fix r8770 oops
2009-07-02 02:04:34 +00:00
Charles Kerr
a8619eb645
(trunk libT) #529 : Time remaining for downloads is unreliable
2009-07-02 01:50:07 +00:00
Charles Kerr
32aeae1388
(trunk libT) #2252 : Folders stay in the original folder after using "Set location" and moving folder(torrent)
2009-07-01 15:30:17 +00:00
Charles Kerr
24746cff7f
(trunk libT) minor #include futzing
2009-07-01 14:58:57 +00:00
Charles Kerr
d6ed808f9c
(trunk, libT) #2253 : I love you, valgrind pt 3
2009-07-01 00:46:30 +00:00
Charles Kerr
58ba65f55b
(trunk, gtk/qt) use Monsoon's strings for encryption preferences and Deluge's system tray tooltip.
2009-06-30 18:08:50 +00:00
Charles Kerr
07046a26b2
(trunk libT) inline some one-liners
2009-06-30 16:40:34 +00:00
Charles Kerr
1980bcc988
(trunk libT) I love you, massif pt. 2
2009-06-25 17:25:51 +00:00
Charles Kerr
db5b508ca6
(trunk libT) I love you, massif
2009-06-25 04:02:07 +00:00
Charles Kerr
ffc54a8c7e
(trunk) #2245 : defined macros
2009-06-25 01:57:31 +00:00
Charles Kerr
7274c24e44
(trunk libT) #2244 : Default upload slots too high
2009-06-25 00:24:30 +00:00
Charles Kerr
ae8783d6e9
(trunk libT) this is so minor I hesitate to commit it, but... save 16 bytes per torrent by more efficient alignment of tr_info's fields :)
2009-06-24 04:36:18 +00:00
Charles Kerr
8d52cc2adb
(trunk libT) scrimp & save a few more bytes per each peer
2009-06-24 04:14:39 +00:00
Charles Kerr
5e208a2909
(trunk libT) save some memory, and an unnecessary malloc/free, for each torrent
2009-06-24 03:54:11 +00:00
Charles Kerr
057638c4e9
(trunk libT) #2240 : Cryptic information messages on startup
2009-06-23 14:43:09 +00:00
Charles Kerr
1ae47c697d
(trunk) silence some minor gcc warnings
2009-06-23 14:15:23 +00:00
Charles Kerr
39330501e4
(trunk) #2222 : Make DHT support a compile-time option, enabled by default
2009-06-21 08:57:26 +00:00
Charles Kerr
587ddb48f0
(trunk libT) #2228 : transmission should learn to truncate files on updating torrents
2009-06-21 07:53:51 +00:00
Charles Kerr
ef9896e223
(trunk libT) more efficient closing of a torrent's open files
2009-06-21 07:36:51 +00:00
Charles Kerr
1bc1b16da7
(trunk libtransmission) #2227 : tr_metaInfoBuilderCreate(topFile) creates invalid .torrent files when topFile ends with a '/'
2009-06-20 00:39:30 +00:00
Charles Kerr
c859f06742
(trunk) autoconf/automake: move libdht.a into a DHT_LIBS variable
2009-06-19 23:50:09 +00:00
Charles Kerr
19a8b6193c
(trunk libT) #2225 : support supportcypto and requirecrypto flags in http tracker announces
2009-06-18 20:33:04 +00:00
Charles Kerr
dbc9c0fb7d
(trunk libT) tweak benc dict preallocation in resume.c as suggested by Elbandi
2009-06-17 22:07:16 +00:00
Charles Kerr
683073855e
(trunk libT) revert most of r8693 as a quick fix for a possible alignment issue on a NAS
2009-06-16 19:31:17 +00:00
Charles Kerr
45f1316bce
(trunk libT) #2196 : add a fallback implementation of preallocateFileFull() in case the os-specific and fs-specific approaches don't work.
2009-06-16 17:10:47 +00:00
Erick Turnquist
1c7ac5bea0
(trunk libT) fix "dereferencing pointer does brea strict-aliasing rules" warning
2009-06-15 05:16:36 +00:00
Charles Kerr
1be7f51b3d
(trunk libT) simplify the evtimer / struct timeval code a little
2009-06-15 03:24:40 +00:00
Charles Kerr
0380906aa6
(trunk libT) a minor but nice twofer: reduce per-peer memory overhead a little bit, and also avoid an extra malloc/free per peer connection
2009-06-15 02:22:41 +00:00
Charles Kerr
8e676171d4
(trunk libT) move tr_bitfield into its own, package-visible source files. this may break the mac build temporarily until the xcode file gets synced
2009-06-15 00:11:06 +00:00
Charles Kerr
deb679dab0
(trunk libT) avoid an extra per-torrent malloc/free by aggregating its tr_bandwidth into its struct
2009-06-14 22:19:19 +00:00
Charles Kerr
813640d6f3
(trunk libT) silence a gcc 4.4 warning: "dereferencing type-punned pointer will break strict-aliasing rules"
2009-06-14 19:17:10 +00:00
Charles Kerr
e082548030
(trunk) remove the test for fallocate(), since we used posix_fallocate() as a fallback anyway. < http://www.lucas-nussbaum.net/blog/?p=332 > says: "Glibc does have posix_fallocate(), which implements the POSIX interface. posix_fallocate() is wired to use the fallocate system call, for sufficiently modern versions of glibc."
2009-06-14 18:32:09 +00:00
Charles Kerr
73f3c3ad8c
(trunk) replace LIBEVENT_CPPFLAGS with LIBEVENT_CFLAGS
2009-06-14 16:51:22 +00:00
Charles Kerr
13cac341cd
(trunk libT) avoid an extra malloc/free when sending the opening handshake message
2009-06-14 14:39:51 +00:00
Charles Kerr
837186679d
(trunk libT) avoid an extra malloc/free when deriving the scrape URL
2009-06-14 14:23:43 +00:00
Charles Kerr
d8360f9a26
(trunk libT) avoid an unnecessary malloc/free in tr_strdup_printf()
2009-06-14 01:01:46 +00:00
Charles Kerr
ef21704b58
(trunk libT) remove the last calls to tr_getBuffer() and tr_releaseBuffer()
2009-06-14 01:00:36 +00:00
Charles Kerr
6755041894
(trunk) #1864 : Tracker not found (404) when a check of local file is done.
2009-06-13 17:11:46 +00:00
Charles Kerr
a2b9fcc592
(trunk libT) possible fix for #2078 : Assertion failed: (tv->tv_usec >= 0)
2009-06-12 23:01:35 +00:00
Charles Kerr
8f1d036fa3
(trunk libT) make sure tr_sessionSetDHTEnabled() doesn't make libevent calls outside of the libevent thread
2009-06-12 22:17:59 +00:00
Charles Kerr
6f40f83a1f
(trunk) #2204 : wrong variable used in rpc-impl for webseedCount
2009-06-12 12:10:09 +00:00
Charles Kerr
4c60377168
(trunk) fix oops
2009-06-11 22:46:33 +00:00
Charles Kerr
17cb7945ed
(trunk libT) #2199 : DHT should not announce stopped torrents
2009-06-11 21:42:59 +00:00
Charles Kerr
0dd0a0bbd7
(trunk libT) #2195 : 1.71 assertion: tr_peerIoSupportsFEXT( msgs->peer->io ) peer-msgs.c:265
2009-06-10 13:46:46 +00:00
Charles Kerr
101459ef46
(trunk) "assert( eh->die );" isn't shedding any light on the problem but it is pissing off many users, so let's remove it.
2009-06-09 22:02:58 +00:00
Charles Kerr
389db06d08
(trunk) remove a little more newly-dead code
2009-06-09 21:59:25 +00:00
Charles Kerr
47a64975b7
(trunk libT) #2192 : tr_session's hashstring-to-filename code reinvents the wheel
2009-06-09 21:57:11 +00:00
Charles Kerr
dfc6e904d0
(trunk libT) fix copy/paste error in tr_fdAccept()
2009-06-08 14:50:56 +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
d0ae679a2f
(trunk) minor commit: sync the .h licenses with their counterpart .c licenses
2009-06-06 17:39:04 +00:00
Charles Kerr
3f03f2e0c3
(trunk libT) #2151 : possible fix for "Unusually high CPU usage in latest builds" issue
2009-06-06 16:19:34 +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
5898c8b276
(trunk libT) add a debugging message to r8609 in case we ever have to go back to the bad old days of TR_DEBUG_FD
2009-06-04 15:04:34 +00:00
Charles Kerr
cc4cd19903
(trunk libT) under very rare circumstances we wouldn't send a REJ message even if the protocol required it. also, avoid an unnecessary memcpy(). Thanks to geirha and Lacrocivious for helping test & confirm the fix.
2009-06-04 14:59:17 +00:00
Charles Kerr
4c02edf6d4
(trunk libT) fix a minor tr-dht memory leak found by valgrind.
2009-06-03 23:42:13 +00:00
Charles Kerr
8fa568d20b
(trunk libT) lessen evbuffer memory bloat when we have a lot of simultaneous peers
2009-06-03 22:52:08 +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
ca229e5482
(trunk libT) #2160 : fix 1.60 error when setting file wanted/not-wanted flags when adding a new torrent via RPC. reported by anf6
2009-06-03 16:59:32 +00:00
Charles Kerr
8e6eee683f
(trunk) on non-mac platforms, try not building our own copy of libevent 1.4.x
2009-06-03 15:47:08 +00:00
Charles Kerr
a9d99c482a
(trunk libT) dead code removal
2009-06-03 04:56:53 +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
6508dc3a3d
(trunk libT) #2146 : Incorrect maintenance of dhtAnnounceInProgress
2009-06-01 18:24:30 +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
38ffac8bf6
(trunk libT) fix bug that misparsed the tracker's min_request_interval
2009-06-01 18:06:35 +00:00
Charles Kerr
ee0771c751
(trunk) "perl -r" wasn't portable to os x
2009-06-01 00:43:01 +00:00
Charles Kerr
ea93eab02d
(trunk libT) on platforms that support it, use POSIX_FADV_SEQUENTIAL instead of POSIX_FADV_RANDOM. ( http://trac.transmissionbt.com/ticket/1521#comment:25 )
2009-05-31 21:20:49 +00:00
Charles Kerr
0834c33445
(trunk) yet another stab at building version.h portably
2009-05-31 20:22:47 +00:00
Charles Kerr
d4aaa3d320
(trunk libT) r8563 weak.
2009-05-31 00:27:19 +00:00
Charles Kerr
62109971c5
(trunk libT) fix two trivial compiler warnings from r8562
2009-05-30 21:59:09 +00:00
Charles Kerr
73cef0d680
(trunk libT) dead code removal
2009-05-30 21:45:40 +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