]> granicus.if.org Git - transmission/log
transmission
13 years ago(trunk libT) a bit of futzing: remove a few more unnecessary casts from void*
Jordan Lee [Thu, 3 Mar 2011 21:51:11 +0000 (21:51 +0000)]
(trunk libT) a bit of futzing: remove a few more unnecessary casts from void*

13 years ago(trunk libT) add an "existing dir" argument to tr_fdFileCheckout().
Jordan Lee [Thu, 3 Mar 2011 19:59:12 +0000 (19:59 +0000)]
(trunk libT) add an "existing dir" argument to tr_fdFileCheckout().

existing_dir: An ancestor of filename which must already exist and won't be created by tr_fdFileCheckout(). In implementation this is the download directory and prevents directories from being created in error, such as a mount point for an external drive when the drive is unplugged.

13 years agoremove a handful of unnecessary casts
Jordan Lee [Thu, 3 Mar 2011 19:56:44 +0000 (19:56 +0000)]
remove a handful of unnecessary casts

13 years ago(trunk libT) remove the unused tr_ratecontrol code. switch webseed over to using...
Jordan Lee [Thu, 3 Mar 2011 18:33:24 +0000 (18:33 +0000)]
(trunk libT) remove the unused tr_ratecontrol code. switch webseed over to using tr_bandwidth.

13 years ago(trunk libT) #4070 "assertion failure happens soon after startup" -- fixed.
Jordan Lee [Thu, 3 Mar 2011 17:28:04 +0000 (17:28 +0000)]
(trunk libT) #4070 "assertion failure happens soon after startup" -- fixed.

Thanks to User294 for helping to track down the problem.

13 years ago(trunk libT) minor revision to r12065: clamp the bandwidth before applying the ratio...
Jordan Lee [Thu, 3 Mar 2011 07:20:18 +0000 (07:20 +0000)]
(trunk libT) minor revision to r12065: clamp the bandwidth before applying the ratio calculation

13 years ago(trunk gtk) some tr-core cleanup
Jordan Lee [Thu, 3 Mar 2011 07:17:57 +0000 (07:17 +0000)]
(trunk gtk) some tr-core cleanup

Variable and function name cleanup; regrouping related functions together, etc.

13 years ago(trunk) when creating the dock icon badge view, we do not need to give it a frame
Mitchell Livingston [Thu, 3 Mar 2011 03:53:21 +0000 (03:53 +0000)]
(trunk) when creating the dock icon badge view, we do not need to give it a frame

13 years ago(trunk gtk) remove the TrTorrent GObject subclass.
Jordan Lee [Thu, 3 Mar 2011 01:59:25 +0000 (01:59 +0000)]
(trunk gtk) remove the TrTorrent GObject subclass.

13 years ago(trunk libT) #4078 "Better calculation of the bitfield length while still a magnet...
Jordan Lee [Wed, 2 Mar 2011 15:00:12 +0000 (15:00 +0000)]
(trunk libT) #4078 "Better calculation of the bitfield length while still a magnet link" -- fixed.

13 years ago(trunk) #4041 "FTBFS with enabled uTP on Debian" -- revised patch from taem which...
Jordan Lee [Wed, 2 Mar 2011 07:31:14 +0000 (07:31 +0000)]
(trunk) #4041 "FTBFS with enabled uTP on Debian" -- revised patch from taem which unbreaks autoconf build on darwin as reported by leena

13 years ago(trunk libT) work in progress, but this is a slightly better speed limiting for mixed...
Jordan Lee [Wed, 2 Mar 2011 07:21:58 +0000 (07:21 +0000)]
(trunk libT) work in progress, but this is a slightly better speed limiting for mixed tcp/utp peers

13 years ago(trunk libT) #4047 "transfer speed shown as 0" -- revert r11783 (#3950) because it...
Jordan Lee [Tue, 1 Mar 2011 15:23:13 +0000 (15:23 +0000)]
(trunk libT) #4047 "transfer speed shown as 0" -- revert r11783 (#3950) because it caused speed misreporting.

13 years ago(trunk libT) #4073 "suggest inclusion of <signal.h> in torrent.c" -- done.
Jordan Lee [Mon, 28 Feb 2011 13:10:56 +0000 (13:10 +0000)]
(trunk libT) #4073 "suggest inclusion of <signal.h> in torrent.c" -- done.

13 years agopixel adjustment
Mitchell Livingston [Mon, 28 Feb 2011 03:44:04 +0000 (03:44 +0000)]
pixel adjustment

13 years agoplace the "download to" location in a box in the add window and the add magnet link...
Mitchell Livingston [Mon, 28 Feb 2011 03:41:56 +0000 (03:41 +0000)]
place the "download to" location in a box in the add window and the add magnet link window

13 years ago(trunk) #4071 Upload and Download rates swapped in transmission-cli
Mitchell Livingston [Mon, 28 Feb 2011 02:45:17 +0000 (02:45 +0000)]
(trunk) #4071 Upload and Download rates swapped in transmission-cli

13 years agotidy up .gitignore
Jordan Lee [Sat, 26 Feb 2011 18:28:47 +0000 (18:28 +0000)]
tidy up .gitignore

13 years ago(trunk qt) #4067 "Kazakh translation small fix" -- committed patch by taem
Jordan Lee [Sat, 26 Feb 2011 18:27:44 +0000 (18:27 +0000)]
(trunk qt) #4067 "Kazakh translation small fix" -- committed patch by taem

13 years agoonly ignore autogenerated files in the m4 directory
Jordan Lee [Sat, 26 Feb 2011 18:17:53 +0000 (18:17 +0000)]
only ignore autogenerated files in the m4 directory

13 years ago(trunk) #4066 Fix the pieces view for magnet links
Mitchell Livingston [Sat, 26 Feb 2011 15:13:35 +0000 (15:13 +0000)]
(trunk) #4066 Fix the pieces view for magnet links

13 years agostore secondsDownloading and secondsSeeding as ints instead of time_t
Mitchell Livingston [Sat, 26 Feb 2011 15:01:07 +0000 (15:01 +0000)]
store secondsDownloading and secondsSeeding as ints instead of time_t

13 years agorevert the last commit
Mitchell Livingston [Sat, 26 Feb 2011 14:59:05 +0000 (14:59 +0000)]
revert the last commit

13 years agostore secondsDownloading and secondsSeeding as ints instead of time_t
Mitchell Livingston [Sat, 26 Feb 2011 14:56:58 +0000 (14:56 +0000)]
store secondsDownloading and secondsSeeding as ints instead of time_t

13 years ago(trunk qt) #4064 "add uTP codetip to torrnet peers details in" -- done.
Jordan Lee [Sat, 26 Feb 2011 14:02:27 +0000 (14:02 +0000)]
(trunk qt) #4064 "add uTP codetip to torrnet peers details in" -- done.

13 years ago(trunk) update .gitignore with patch from taem
Jordan Lee [Sat, 26 Feb 2011 13:59:43 +0000 (13:59 +0000)]
(trunk) update .gitignore with patch from taem

13 years agoAdd a placeholder for 2.30 that mentions that the 'lazy bitfield' feature has been...
Jordan Lee [Fri, 25 Feb 2011 15:24:19 +0000 (15:24 +0000)]
Add a placeholder for 2.30 that mentions that the 'lazy bitfield' feature has been superceded.

13 years ago(trunk libT) peer-mgr.c peerCallbackFunc(): Replace some "should always be true"...
Jordan Lee [Fri, 25 Feb 2011 01:48:46 +0000 (01:48 +0000)]
(trunk libT) peer-mgr.c peerCallbackFunc(): Replace some "should always be true" tests with assert()s. These tests used to be useful, but I don't think they are anymore. The assert()s have been put in their place to test that theory...

13 years ago(trunk) #2338 "Add uTP support" -- have the autoconf system default to build uTP...
Jordan Lee [Fri, 25 Feb 2011 01:44:32 +0000 (01:44 +0000)]
(trunk) #2338 "Add uTP support" -- have the autoconf system default to build uTP support iff a C++ compiler can be found by AC_PROG_CXX

13 years agoupdate jquery to 1.5.1
Mitchell Livingston [Fri, 25 Feb 2011 00:06:16 +0000 (00:06 +0000)]
update jquery to 1.5.1

13 years agochange the default toolbar to separate the remove button and the pause/resume all...
Mitchell Livingston [Thu, 24 Feb 2011 23:40:36 +0000 (23:40 +0000)]
change the default toolbar to separate the remove button and the pause/resume all button with a space instead of a separator

13 years ago(trunk qt) fix build issue reported by taem
Jordan Lee [Thu, 24 Feb 2011 18:05:00 +0000 (18:05 +0000)]
(trunk qt) fix build issue reported by taem

13 years ago(trunk libT) #4035 "In seed state, transmission disconnect from leechers" -- fixed.
Jordan Lee [Thu, 24 Feb 2011 14:35:45 +0000 (14:35 +0000)]
(trunk libT) #4035 "In seed state, transmission disconnect from leechers" -- fixed.

13 years ago(trunk libT) utils-test.c: remove some debugging stubs that should not have been...
Jordan Lee [Thu, 24 Feb 2011 04:16:47 +0000 (04:16 +0000)]
(trunk libT) utils-test.c: remove some debugging stubs that should not have been checked in

13 years ago(trunk libT) make the tr_bitsetToBenc() and tr_bitsetFromBenc() functions follow...
Jordan Lee [Thu, 24 Feb 2011 04:14:12 +0000 (04:14 +0000)]
(trunk libT) make the tr_bitsetToBenc() and tr_bitsetFromBenc() functions follow bitset.c's variable naming convention of how the "this" pointer is named

13 years ago(trunk libT) if we're a partial seed and the peer has everything we have, disconnect.
Jordan Lee [Thu, 24 Feb 2011 01:50:35 +0000 (01:50 +0000)]
(trunk libT) if we're a partial seed and the peer has everything we have, disconnect.

13 years ago(trunk) small update to Russian translation
Mitchell Livingston [Wed, 23 Feb 2011 22:52:44 +0000 (22:52 +0000)]
(trunk) small update to Russian translation

13 years ago(trunk qt) #4052 "Qt Client Kazakh translation" -- added. Translation by taem.
Jordan Lee [Wed, 23 Feb 2011 15:56:00 +0000 (15:56 +0000)]
(trunk qt) #4052 "Qt Client Kazakh translation" -- added. Translation by taem.

13 years ago(trunk libT) minor cleanup: improve the function names torrentConstructor() and torre...
Jordan Lee [Wed, 23 Feb 2011 06:18:09 +0000 (06:18 +0000)]
(trunk libT) minor cleanup: improve the function names torrentConstructor() and torrentDestructor().

These functions actually allocate/free the memory where these objects reside, so it's clearer to name them torrentNew() and torrentDelete().

13 years ago(trunk libT) minor cleanup: improve the function names peerConstructor() and peerDest...
Jordan Lee [Wed, 23 Feb 2011 06:14:06 +0000 (06:14 +0000)]
(trunk libT) minor cleanup: improve the function names peerConstructor() and peerDestructor().

These functions actually allocate/free the memory where these peer objects reside, so it's clearer to name them peerNew() and peerDelete().

13 years ago(trunk libT) #4051 "Use composition for the tr_history fields in tr_peer" -- fixed.
Jordan Lee [Wed, 23 Feb 2011 06:01:16 +0000 (06:01 +0000)]
(trunk libT) #4051 "Use composition for the tr_history fields in tr_peer" -- fixed.

If we use composition on these objects we can save a handful of pointers per peer. This isn't a big deal, but it's an easy/safe change to do.

13 years ago(trunk libT) #4048 "use bitsets instead of bitfield in tr_completion" -- done.
Jordan Lee [Wed, 23 Feb 2011 03:54:04 +0000 (03:54 +0000)]
(trunk libT) #4048 "use bitsets instead of bitfield in tr_completion" -- done.

Excuse the sprawl. Much of this didn't fit into self-contained commits.

13 years ago(trunk qt) #4050 "transmission-qt translations don't load under Linux" -- fixed via...
Jordan Lee [Wed, 23 Feb 2011 02:16:16 +0000 (02:16 +0000)]
(trunk qt) #4050 "transmission-qt translations don't load under Linux" -- fixed via patch from taem

13 years ago(trunk libT) remove unused code: tr_bitfieldIsEmpty()
Jordan Lee [Mon, 21 Feb 2011 15:43:41 +0000 (15:43 +0000)]
(trunk libT) remove unused code: tr_bitfieldIsEmpty()

13 years ago(trunk libT) remove unused functions: tr_bitsetDifference() tr_bitfieldDifference()
Jordan Lee [Mon, 21 Feb 2011 15:36:07 +0000 (15:36 +0000)]
(trunk libT) remove unused functions: tr_bitsetDifference() tr_bitfieldDifference()

13 years agoslightly simplify filter code
Mitchell Livingston [Mon, 21 Feb 2011 04:18:58 +0000 (04:18 +0000)]
slightly simplify filter code

13 years agoMac build compiles with r12003
Mitchell Livingston [Mon, 21 Feb 2011 01:42:17 +0000 (01:42 +0000)]
Mac build compiles with r12003

13 years ago(trunk libT) code cleanup: moving bitset functions to their own .c file.
Jordan Lee [Mon, 21 Feb 2011 01:40:19 +0000 (01:40 +0000)]
(trunk libT) code cleanup: moving bitset functions to their own .c file.

13 years ago(trunk libT) remove dead code in peer-common.h: the tr_addreq_t enum
Jordan Lee [Mon, 21 Feb 2011 01:15:13 +0000 (01:15 +0000)]
(trunk libT) remove dead code in peer-common.h: the tr_addreq_t enum

13 years ago(trunk libT) web.c: free the unprocessed tasks before exiting the libcurl thread.
Jordan Lee [Mon, 21 Feb 2011 01:13:28 +0000 (01:13 +0000)]
(trunk libT) web.c: free the unprocessed tasks before exiting the libcurl thread.

This is rare but can happen during shutdown if there are unresponsive trackers. Cleaning up the tasks improves the S/N ratio in valgrind a bit.

13 years ago(trunk libT) ensure that the last few log messages actually get logged before shutdow...
Jordan Lee [Sun, 20 Feb 2011 19:12:45 +0000 (19:12 +0000)]
(trunk libT) ensure that the last few log messages actually get logged before shutdown finishes.

13 years agosilence a warning
Mitchell Livingston [Sun, 20 Feb 2011 15:05:01 +0000 (15:05 +0000)]
silence a warning

13 years agorestore cmd-option-f to select the search filter field when the torrent table view...
Mitchell Livingston [Sun, 20 Feb 2011 04:34:46 +0000 (04:34 +0000)]
restore cmd-option-f to select the search filter field when the torrent table view is selected

13 years agomake sure filter buttons' tooltips are updated when the bar is shown
Mitchell Livingston [Sun, 20 Feb 2011 04:23:09 +0000 (04:23 +0000)]
make sure filter buttons' tooltips are updated when the bar is shown

13 years agoreplace renegade #include with #import
Mitchell Livingston [Sun, 20 Feb 2011 04:17:46 +0000 (04:17 +0000)]
replace renegade #include with #import

13 years agolocalize the filter bar
Mitchell Livingston [Sun, 20 Feb 2011 04:16:38 +0000 (04:16 +0000)]
localize the filter bar

13 years agoadd missing xibs to makefile
Mitchell Livingston [Sun, 20 Feb 2011 04:11:58 +0000 (04:11 +0000)]
add missing xibs to makefile

13 years agomove the filter bar into its own xib
Mitchell Livingston [Sun, 20 Feb 2011 03:58:50 +0000 (03:58 +0000)]
move the filter bar into its own xib

13 years agochange the status bar's left menu to be within the button (in the xib)
Mitchell Livingston [Sun, 20 Feb 2011 00:33:49 +0000 (00:33 +0000)]
change the status bar's left menu to be within the button (in the xib)

13 years agoremove unused variables
Mitchell Livingston [Sun, 20 Feb 2011 00:24:25 +0000 (00:24 +0000)]
remove unused variables

13 years agomove the status bar into its own xib file
Mitchell Livingston [Sun, 20 Feb 2011 00:22:55 +0000 (00:22 +0000)]
move the status bar into its own xib file

13 years agoremove the status bar view's observer on dealloc
Mitchell Livingston [Sat, 19 Feb 2011 21:38:38 +0000 (21:38 +0000)]
remove the status bar view's observer on dealloc

13 years agowhen resizing the filter bar, use the filter bar width instead of the status bar...
Mitchell Livingston [Sat, 19 Feb 2011 21:12:45 +0000 (21:12 +0000)]
when resizing the filter bar, use the filter bar width instead of the status bar width; silence a warning

13 years ago(trunk libT) mark the two "progress" args to tr_torrentSetLocation() as volatile.
Jordan Lee [Sat, 19 Feb 2011 20:10:05 +0000 (20:10 +0000)]
(trunk libT) mark the two "progress" args to tr_torrentSetLocation() as volatile.

13 years agothe check mark indicating completed peers in the inspector was being stretched becaus...
Mitchell Livingston [Sat, 19 Feb 2011 19:30:24 +0000 (19:30 +0000)]
the check mark indicating completed peers in the inspector was being stretched because the x-coordinate wasn't being floor()ed

13 years ago(trunk) fix uTP FTBFS in Wheezy, patch by taem
Jordan Lee [Sat, 19 Feb 2011 17:58:08 +0000 (17:58 +0000)]
(trunk) fix uTP FTBFS in Wheezy, patch by taem

13 years ago(trunk libutp) silence a couple of useless asserts.
Jordan Lee [Sat, 19 Feb 2011 17:52:02 +0000 (17:52 +0000)]
(trunk libutp) silence a couple of useless asserts.

From https://github.com/bittorrent/libutp/commit/577e03dc3e14a68a0ecebc0e46b66dee77af3bfe

13 years ago(trunk gtk) #4040 "Show the torrent name in the Peers Tab's tooltips" -- done.
Jordan Lee [Sat, 19 Feb 2011 13:04:09 +0000 (13:04 +0000)]
(trunk gtk) #4040 "Show the torrent name in the Peers Tab's tooltips" -- done.

13 years ago(trunk libT) #3372 "What happened with closing idle peers?" -- fixed.
Jordan Lee [Sat, 19 Feb 2011 12:32:41 +0000 (12:32 +0000)]
(trunk libT) #3372 "What happened with closing idle peers?" -- fixed.

13 years ago(trunk libT) closeBadPeers() part 2 of 2: this function was serving two purposes...
Jordan Lee [Sat, 19 Feb 2011 12:30:18 +0000 (12:30 +0000)]
(trunk libT) closeBadPeers() part 2 of 2: this function was serving two purposes, which wasn't clear from its name. refactor slightly to make the purpose and name match.

13 years ago(trunk libT) closeBadPeers() part 1 of 2: don't bother sorting these peers by activit...
Jordan Lee [Sat, 19 Feb 2011 12:24:00 +0000 (12:24 +0000)]
(trunk libT) closeBadPeers() part 1 of 2: don't bother sorting these peers by activity -- we're closing -all- of them, so sorting them is pointless.

13 years ago(trunk gtk) Don't display uTP checkbox in non-uTP builds.
Jordan Lee [Sat, 19 Feb 2011 09:30:06 +0000 (09:30 +0000)]
(trunk gtk) Don't display uTP checkbox in non-uTP builds.

Tweak to r11976 s.t. the "Edit GNOME Proxy Settings" button doesn't get grouped in the "Peer Limits" section when uTP is disabled. :)

13 years ago(trunk gtk) #4038 "Prefs dialog's blocklist section allows the 'update' button to...
Jordan Lee [Sat, 19 Feb 2011 09:02:39 +0000 (09:02 +0000)]
(trunk gtk) #4038 "Prefs dialog's blocklist section allows the 'update' button to be clicked when no blocklist is specified" -- fixed.

13 years agodon't make "No Torrents Selected" in the inspector selectable
Mitchell Livingston [Sat, 19 Feb 2011 05:49:52 +0000 (05:49 +0000)]
don't make "No Torrents Selected" in the inspector selectable

13 years agoDon't display uTP checkbox in non-uTP builds (gtk).
Juliusz Chroboczek [Fri, 18 Feb 2011 22:22:02 +0000 (22:22 +0000)]
Don't display uTP checkbox in non-uTP builds (gtk).

Reported by Rolcol.

13 years agoRemove obsolete UNUSED marker.
Juliusz Chroboczek [Fri, 18 Feb 2011 21:55:42 +0000 (21:55 +0000)]
Remove obsolete UNUSED marker.

13 years ago(trunk libT) #4047 "timeChecked for the last piece is not saved to a resume file...
Jordan Lee [Fri, 18 Feb 2011 19:31:18 +0000 (19:31 +0000)]
(trunk libT) #4047 "timeChecked for the last piece is not saved to a resume file" -- fixed.

A garden variety off-by-one error. good patch by jusid and revision by me.

13 years agoremove a couple of #includes that we don't need anymore after the previous commit.
Jordan Lee [Fri, 18 Feb 2011 17:09:46 +0000 (17:09 +0000)]
remove a couple of #includes that we don't need anymore after the previous commit.

13 years ago(trunk daemon) simplify the code in the fallback implementation of daemon() for syste...
Jordan Lee [Fri, 18 Feb 2011 17:05:17 +0000 (17:05 +0000)]
(trunk daemon) simplify the code in the fallback implementation of daemon() for systems that don't have this function themselves.

13 years agoStub out UTP_Create in non-uTP builds.
Juliusz Chroboczek [Fri, 18 Feb 2011 16:01:52 +0000 (16:01 +0000)]
Stub out UTP_Create in non-uTP builds.

13 years agodisplay protocol information (TCP or µTP) in the peer table's tooltip
Mitchell Livingston [Fri, 18 Feb 2011 04:28:59 +0000 (04:28 +0000)]
display protocol information (TCP or µTP) in the peer table's tooltip

13 years ago(trunk libT) add a bool to tr_peer_stat and the RPC peer list to denote whether or...
Jordan Lee [Fri, 18 Feb 2011 04:07:43 +0000 (04:07 +0000)]
(trunk libT) add a bool to tr_peer_stat and the RPC peer list to denote whether or not a peer's connected via µTP

13 years agomove µTP pref to the Network tab
Mitchell Livingston [Fri, 18 Feb 2011 03:50:19 +0000 (03:50 +0000)]
move µTP pref to the Network tab

13 years agoadd µTP to the Prefs window
Mitchell Livingston [Fri, 18 Feb 2011 03:26:54 +0000 (03:26 +0000)]
add µTP to the Prefs window

13 years agoenable the utp flag when compiling on Mac in Release
Mitchell Livingston [Fri, 18 Feb 2011 01:40:13 +0000 (01:40 +0000)]
enable the utp flag when compiling on Mac in Release

13 years agoenable the utp flag when compiling on Mac
Mitchell Livingston [Fri, 18 Feb 2011 01:37:57 +0000 (01:37 +0000)]
enable the utp flag when compiling on Mac

13 years agoMac build compiles again
Mitchell Livingston [Fri, 18 Feb 2011 01:27:46 +0000 (01:27 +0000)]
Mac build compiles again

13 years ago(trunk libT) explicitly use the libevent2 header files, instead of the deprecated...
Jordan Lee [Fri, 18 Feb 2011 01:25:32 +0000 (01:25 +0000)]
(trunk libT) explicitly use the libevent2 header files, instead of the deprecated backwards-compatibility one

13 years ago(trunk libT) add stubs for UTP_Drained() and UTP_Write() to remove a few #ifdefs...
Jordan Lee [Fri, 18 Feb 2011 01:18:51 +0000 (01:18 +0000)]
(trunk libT) add stubs for UTP_Drained() and UTP_Write() to remove a few #ifdefs from peer-io.c

13 years ago(trunk libT) add a stub for UTP_Close() s.t. peer-mgr.c doesn't need the #ifdefs...
Jordan Lee [Fri, 18 Feb 2011 01:06:42 +0000 (01:06 +0000)]
(trunk libT) add a stub for UTP_Close() s.t. peer-mgr.c doesn't need the #ifdefs from r11960

13 years agoadd configure script switch to enable/disable utp
Jordan Lee [Fri, 18 Feb 2011 00:45:44 +0000 (00:45 +0000)]
add configure script switch to enable/disable utp

13 years agoResynchronise with libutp 2011-02-09 15:29:29.
Juliusz Chroboczek [Fri, 18 Feb 2011 00:43:56 +0000 (00:43 +0000)]
Resynchronise with libutp 2011-02-09 15:29:29.

13 years agoReinstate a variable removed by r11810.
Juliusz Chroboczek [Fri, 18 Feb 2011 00:43:54 +0000 (00:43 +0000)]
Reinstate a variable removed by r11810.

13 years agoDon't attempt uTP connexions to peers learned from PEX that didn't signal support.
Juliusz Chroboczek [Fri, 18 Feb 2011 00:43:49 +0000 (00:43 +0000)]
Don't attempt uTP connexions to peers learned from PEX that didn't signal support.

13 years agoUse large kernel buffers for the UDP socket when uTP is enabled.
Juliusz Chroboczek [Fri, 18 Feb 2011 00:43:47 +0000 (00:43 +0000)]
Use large kernel buffers for the UDP socket when uTP is enabled.

Since we're using a single UDP socket to implement multiple uTP sockets,
and since we're not always timely in servicing an incoming UDP packet,
it's important to use a large receive buffer.  The send buffer is probably
less critical, we increase it nonetheless.

13 years agoDon't call tr_utpClose in toggle_utp.
Juliusz Chroboczek [Fri, 18 Feb 2011 00:43:45 +0000 (00:43 +0000)]
Don't call tr_utpClose in toggle_utp.

The uTP timer needs to run even when uTP has been disabled, or else the
uTP sockets will never time out.

13 years agoDon't mark atoms as non-uTP unless we failed to connect.
Juliusz Chroboczek [Fri, 18 Feb 2011 00:43:43 +0000 (00:43 +0000)]
Don't mark atoms as non-uTP unless we failed to connect.

13 years agoClear utp_failed flag upon seeing an announcement for ut_holepunch.
Juliusz Chroboczek [Fri, 18 Feb 2011 00:43:39 +0000 (00:43 +0000)]
Clear utp_failed flag upon seeing an announcement for ut_holepunch.

13 years agoTry uTP connections by default.
Juliusz Chroboczek [Fri, 18 Feb 2011 00:43:37 +0000 (00:43 +0000)]
Try uTP connections by default.

13 years agoWhen failing to connect over uTP, fall back to TCP.
Juliusz Chroboczek [Fri, 18 Feb 2011 00:43:34 +0000 (00:43 +0000)]
When failing to connect over uTP, fall back to TCP.