Commit Graph

10338 Commits

Author SHA1 Message Date
Juliusz Chroboczek 87d1f5ca34 Check for UTP timeouts every 50ms or so.
Greg says that works for them.
2011-02-18 00:24:04 +00:00
Juliusz Chroboczek 7741151c48 Accept UTP connexions. 2011-02-18 00:23:58 +00:00
Juliusz Chroboczek 8599d7c037 Modify peer-io to work with UTP sockets.
This is not supposed to work yet -- it just adds new fields to the data
structures to get the UTP code to compile.
2011-02-18 00:23:51 +00:00
Juliusz Chroboczek 98ea0addb0 Fix incorrect use of tr_timerAdd. 2011-02-18 00:23:49 +00:00
Juliusz Chroboczek c5e3cfecb9 Participate in UTP.
This adds code to participate in the UTP protocol, but without doing anything
useful yet -- we just shut down immediately any incoming connexion request.
2011-02-18 00:23:47 +00:00
Jordan Lee ee4317600d (trunk libT) #3767 "rarest first policy" -- disable the assertReplicationCountIsExact() assertion 2011-02-17 13:00:11 +00:00
Jordan Lee 77bdb6522d (trunk libT) #3767 "rarest first policy" -- possible fix for assertion error reported by rolcol
Resolve the problem described @ https://trac.transmissionbt.com/ticket/3767#comment:38
2011-02-17 12:57:36 +00:00
Jordan Lee 4e60838434 (trunk libT) #3767 "rarest first policy" -- remove some debugging code.
My initial thinking was to let nightly users test this out, but it's not necessary.
2011-02-17 07:10:20 +00:00
Jordan Lee 5dffc2814d (trunk libT) #3767 "rarest first policy" -- fixed.
This commit, started by a patch from athy, implements a rarest first policy when deciding which pieces to request from peers. It keeps a count of how many peers have each piece, and updates the count when getting bitfields, have, have all, and have none messages, as well as decrementing the counts when peers disconnect.

This running total is generated only for downloading torrents. Seeds don't have this overhead.
2011-02-17 05:14:53 +00:00
Jordan Lee 716a3c90c2 (trunk) #4032 "Better error detection / reporting in http announces" -- added to trunk.
This patch adds two new flags to the callback function -- did_connect and did_timeout -- that are calculated inside of web.c using information from libcurl. This allows the announcer to detect timeouts more accurately and also to distinguish between unresponsive peers (which get the preexisting "Tracker did not respond" error message) and unconnectable peers (which get a new error message, "Could not connect to tracker").
2011-02-17 02:26:24 +00:00
Jordan Lee e4fb51a778 revert r11894 2011-02-15 19:51:31 +00:00
Jordan Lee 634c09f9b0 (trunk dht) apply patch from jch to increase the number of token_bucket_tokens. 2011-02-15 19:48:57 +00:00
Juliusz Chroboczek 6cf281a311 Make the initial DHT bootstrap more persistent.
We now try to contact the bootstrap nodes up to six times.
A better solution might be to reattempt bootstrap every half hour
or so.  This might be beneficial to people whose connectivity
changes while Transmission is running.
2011-02-15 19:10:56 +00:00
Jordan Lee d591767941 (trunk libT) #3656 "endgame could be faster" -- fixed. Patch by harrydb. 2011-02-15 16:04:56 +00:00
Jordan Lee dede299e04 (trunk gtk) #3866 "popup menu for file list manipulation" -- remove unused code in file-list.c
This code can be pulled back out of svn and readded if it's needed in the future.
2011-02-15 15:21:22 +00:00
Jordan Lee 72f9ab91fa (trunk) make tr_torrentName() a public function.
This has been a private function in libtransmission for awhile now but it makes more sense as a public function.
2011-02-15 15:18:51 +00:00
Mitchell Livingston f8f61d89d5 adjust the spacing between the "Add" and "Cancel" buttons in the Add windows 2011-02-13 20:50:29 +00:00
Jordan Lee e187ae58a9 (trunk libT) #4016 "blocklists don't handle overlapping/unsorted rules" -- fixed. 2011-02-13 16:14:31 +00:00
Jordan Lee 5c14353398 (trunk) #4022 "please update .gitignore" -- done. 2011-02-13 16:04:54 +00:00
Mitchell Livingston ff5ce357fe rename "Clear Completed" to "Cleanup Completed" 2011-02-13 03:25:06 +00:00
Mitchell Livingston 98a82de9ec remove selected transfers when removing completed transfers, removing through RPC, etc. (whenever removing transfers that aren't the selected transfers) 2011-02-13 02:14:21 +00:00
Mitchell Livingston 9348605f03 Add option to remove completed transfers 2011-02-13 02:02:13 +00:00
Jordan Lee 59e8348b15 (trunk gtk) #4012 "Cannot set individual seeding time in GTK+ client" -- fixed.
The code in gtk/details.c was still using the pre-release RPC key "seedInactiveLimit" when it should have been using "seedIdleLimit" instead.
2011-02-12 23:54:33 +00:00
Jordan Lee 8a6f768999 (trunk libT) rename "tr_ip_range" as "tr_ipv4_range" in blocklist.c 2011-02-12 21:20:19 +00:00
Jordan Lee 2b8124d3ad (trunk) #4019 "Minor patch, kill useless casts in transmission source." -- fixed. patch by jlouis
jlouis used Coccinelle to scan transmission's source for redundant code that casts a type to its own type.
2011-02-12 17:27:47 +00:00
Mitchell Livingston f4b9423998 pixel adjustment to the tracker add/remove button 2011-02-12 05:30:51 +00:00
Mitchell Livingston 4fa5de2a90 change the add/remove tracker buttons in the inspector to the rounded rect style, and add tooltips 2011-02-12 05:01:31 +00:00
Mitchell Livingston 0c606f5db3 adjust the pop up button style in the the inspector - options tab 2011-02-12 04:39:50 +00:00
Mitchell Livingston c39b56388e increase the width of the bandwidth limit fields in the inspector 2011-02-12 04:05:28 +00:00
Mitchell Livingston c97f6b3d59 center the "No Torrents Selected" in the inspector 2011-02-12 03:53:23 +00:00
Mitchell Livingston b033af06ff inspector: update the displayed global seeding settings only when necessary; update only the displayed global seeding settings instead of all the options 2011-02-12 03:28:36 +00:00
Mitchell Livingston 82db3c5826 #4017 display the global seeding settings in the inspector 2011-02-12 03:13:14 +00:00
Mitchell Livingston 1f733f9d13 fix a warning 2011-02-12 00:25:24 +00:00
Mitchell Livingston e5b8461919 fix a crash with the URL window, and memory leak with the URL window, and update the "Open" button of the URL window when shown 2011-02-11 03:17:36 +00:00
Mitchell Livingston 32a54d1029 make the buttons in the URL window localizable 2011-02-11 03:05:57 +00:00
Mitchell Livingston 9e4fa7a6d2 remember the URL sheet window size 2011-02-10 01:16:26 +00:00
Mitchell Livingston 7d9ce0df57 enable the URL sheet's add button when shown if text is already entered 2011-02-10 01:03:21 +00:00
Mitchell Livingston 7fabe85b96 remember the text in the URL sheet 2011-02-10 00:58:05 +00:00
Mitchell Livingston 9c1281c43c move the "open torrent URL" sheet into its own xib file 2011-02-10 00:51:25 +00:00
Mitchell Livingston 954b9d1007 #3989 Menubar not translated in Dutch localisation 2011-02-09 13:22:02 +00:00
Jordan Lee 9769e07fa9 (trunk) improvement to r11864
Since the contents of getcwd() are undefined on error, explicitly terminate the buffer string if getcwd() fails.
2011-02-09 06:10:01 +00:00
Jordan Lee 2fc40f4b1c (trunk libt) silence a couple of identical compiler warnings: "ignoring return value of ‘getcwd’, declared with attribute warn_unused_result". 2011-02-09 05:42:52 +00:00
Jordan Lee 3f9886c3dd (trunk libT) silence compiler warning in libtransmission/fdlimit.c: "ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result" 2011-02-09 05:34:23 +00:00
Jordan Lee adf5a2e273 (trunk libT) fix gcc compiler warning in libtransmission/makemeta.c: "ignoring return value of ‘read’, declared with attribute warn_unused_result" 2011-02-09 05:16:37 +00:00
Jordan Lee 62b732708a (trunk gtk) msgwin.c: silence compiler warning "warning: ‘pinned_to_new’ may be used uninitialized in this function" 2011-02-09 05:10:29 +00:00
Mitchell Livingston 1d1a3e8068 #3696 Publish Web Interface via Wide-Area Bonjour (in addition to Link-Local) 2011-02-09 03:06:05 +00:00
Mitchell Livingston 4f3c9923ba format the number of times opened 2011-02-09 02:49:32 +00:00
Mitchell Livingston 4c4a248c02 #4002 Update to JQuery 1.5 2011-02-09 02:45:54 +00:00
Jordan Lee 984ac1b92e (trunk libT) fix compiler warning: "peer-io.h:282: warning: inlining failed in call to ‘evbuffer_add_uint8’: optimizing for size and code size would grow" 2011-02-09 02:35:16 +00:00
Jordan Lee 0bd1ec8de8 (trunk libT) #3991 "connection encryption stopped working" -- silence minor compiler warning. patch by ijuxda. 2011-02-09 02:26:35 +00:00