Charles Kerr
b17d8c34f8
undo r4093 for bmw
2007-12-08 19:47:44 +00:00
Charles Kerr
008a403463
ensure that the `file' variable passed to tr_msg() is never NULL
2007-12-08 19:42:07 +00:00
Charles Kerr
73ee11f233
Use libnatpmp for port mapping. rewrite the upnp/natpmp manager.
...
NOTE: this will break the xpjets build until SoftwareElves or a volunteer patches the xcode project file to make a libnatpmp library just like was done for libminiupnp.
2007-12-08 19:34:15 +00:00
Charles Kerr
d3d1263a84
use fizz' suggestion on from ticket #534 on how to make platform.c more portable wrt header include order
2007-12-07 19:25:54 +00:00
Charles Kerr
481a210e82
fix tracker connection error reported by Gimp_
2007-12-05 02:06:05 +00:00
Charles Kerr
39d8c74fcd
small tweak to play nice with old C compilers. Thanks to fizz for reporting & submitting a patch
2007-12-03 19:52:55 +00:00
Charles Kerr
de9080e9ef
fix tyop
2007-12-03 16:51:22 +00:00
Charles Kerr
f0d1fa0a76
finish fixing the recursive mutex + cond bug reported by sedatg & Waldorf
2007-12-03 15:27:38 +00:00
Charles Kerr
c68af92039
fix very annoying recursive mutex + pthread cond bug reported by setatg, Waldorf, and many others
2007-12-03 04:06:45 +00:00
Charles Kerr
7b068ed926
more mutex work
2007-12-02 18:20:37 +00:00
Charles Kerr
5e88ab235b
possibly get the pthread changes compiling for old versions of Linux
2007-12-02 17:15:52 +00:00
Charles Kerr
b14449fe80
possible fix for the crash reported by sedatg in ticket #519
2007-12-02 16:35:44 +00:00
Charles Kerr
abef433926
improve upload speeds when the speed limits are uncapped.
2007-12-01 23:08:34 +00:00
Charles Kerr
f534d0929c
use PMP_MCAST_ADDR, instead of a hardcoded address, in net.c
2007-12-01 05:11:30 +00:00
Charles Kerr
78f3c40484
get nat-pmp working again in Leopard. Thanks to Chinstrap for tracking down the problem & submitting a patch. See the comment in this changeset for more details.
2007-12-01 05:01:02 +00:00
Charles Kerr
0e1e7efd3b
take inspiration from Solomon when handling odd tracker errors that confuse tracker's request queue: stop the torrent.
...
when the tracker gives us errors that confuse the tracker work queue,
2007-11-30 23:37:44 +00:00
Charles Kerr
f2a08d272f
be more forgiving of tracker failure
2007-11-30 17:10:33 +00:00
Charles Kerr
332019593d
speed tweaks based on whitty's feedback
2007-11-29 02:56:31 +00:00
Charles Kerr
f9670dc7ac
throw away all pending `scrape' requests on shutdown... we don't need them then, so they just slow us down
2007-11-29 02:31:21 +00:00
Charles Kerr
827dc86bb4
rewrite the tracker code. this should improve and/or fix a number of bugs, including "too many open files", "router death", "slow internet", and the mutex release crash.
2007-11-29 00:43:58 +00:00
Charles Kerr
1e4b3a0577
make the peer stats a little easier to understand
2007-11-27 21:39:41 +00:00
Charles Kerr
398bc04bcf
housekeeping. revert r3984 at tiennou's request
2007-11-27 15:39:59 +00:00
Charles Kerr
27f08f325d
fix upload speed limit bug tracked down by makira_
2007-11-27 04:27:03 +00:00
Charles Kerr
d0047acc86
reimplement tr_buildPath() using struct evbuffer
2007-11-27 04:11:39 +00:00
Charles Kerr
0663c4aef7
possible fix for Zeph's "too many open files" bug report.
2007-11-26 21:26:01 +00:00
Charles Kerr
81ea9b4abd
sloppy, sloppy. what should've been 1 commit has been 5.
2007-11-26 20:44:53 +00:00
Charles Kerr
033ee7ff58
fix crash-on-exit introduced by stats code
2007-11-26 20:44:19 +00:00
Charles Kerr
cf85da1759
plug in the stats.filesAdded field
2007-11-26 20:37:07 +00:00
Charles Kerr
548e0324ab
fix stupid bug introduced in the last stats commit
2007-11-26 20:27:07 +00:00
Charles Kerr
56b71bd144
remove dead code
2007-11-26 20:22:08 +00:00
Charles Kerr
07f2e6365a
move tr_getDefaultRoute() to natpmp.c because it's the only code that uses it
2007-11-26 20:21:52 +00:00
Charles Kerr
c3c4b699b9
stats
2007-11-26 20:20:46 +00:00
Charles Kerr
2185081fcb
more stats
2007-11-26 20:05:46 +00:00
Mitchell Livingston
bf3bd6bd5d
avoid divide-by-0 in stats
2007-11-26 19:18:00 +00:00
Mitchell Livingston
6b5f1839aa
get last commit building
2007-11-26 19:10:53 +00:00
Charles Kerr
3aae5534bd
work on the stats a little bit.
2007-11-26 18:55:36 +00:00
Charles Kerr
0ed3610468
fix crash on startup reported by Gimp_
2007-11-26 05:03:28 +00:00
Charles Kerr
e354b82452
disable SWIFT on private trackers, because they are typically ratio-based sites where you *want* to upload as much as possible to deadbeats
2007-11-26 04:05:12 +00:00
Charles Kerr
63cb8506ca
fix crash when loading fastresume files
2007-11-26 03:54:20 +00:00
Charles Kerr
ec042e7278
enable SWIFT in trunk
2007-11-25 17:09:09 +00:00
Charles Kerr
a720545256
fix peer-mgr.c shear between 0.9x and trunk
2007-11-25 17:07:12 +00:00
Charles Kerr
d735989aec
fix clientIsSnubbedBy() to work correctly when we're a seed
2007-11-25 16:57:08 +00:00
Mitchell Livingston
bd2de0888e
fix Wyzo
2007-11-24 19:36:26 +00:00
Mitchell Livingston
4a53c761a3
add Wyzo to clients list
2007-11-24 19:19:22 +00:00
Charles Kerr
18b3b388c0
fix oops from last commit
2007-11-23 03:01:13 +00:00
Charles Kerr
5ad14e4abc
fix another 0.94 prerelease crash report... this one from when finishing verifying a torrent that's running.
2007-11-23 02:49:06 +00:00
Charles Kerr
3b04f824e0
fix libT crash reported in the forums
2007-11-23 02:14:21 +00:00
Charles Kerr
8caa113d4b
fix LTEP PEX error reported by Adrian Ulrich in the BitTorrent mailing list
2007-11-22 06:48:08 +00:00
Charles Kerr
6df942138b
fix portmapping crash.
2007-11-22 06:13:57 +00:00
Charles Kerr
87d4bcd278
Change the default port from 9090 to 51413 to get in compliance with IANA's port number assignment scheme. (1024 through 49151 are reserved)
2007-11-22 04:15:22 +00:00