KN4CK3R
db25042269
Fix compilation errors.
2022-06-04 12:43:40 +00:00
Chocobo1
55ece85ce9
Fix building libtorrent with boost >= 1.70
...
Closes #435 .
Closes #437 .
2020-11-24 02:11:27 +08:00
Miguel Freitas
31faf3f63e
[PATCH] fix boost-1.69 build of twister/libtorrent (thanks lxoliva)
2019-08-19 11:14:21 -03:00
Simon Grim
19364110b5
fix boost-1.67 build
2018-10-19 06:13:36 +05:00
erqan
575e929d29
boost 1.66 patch...
2018-03-31 15:37:30 +03:00
Miguel Freitas
7eabdcaab0
remove unused code (related to #406 )
2017-06-21 11:09:19 -03:00
erqan
dd4f5a1769
quick fix for #387
2016-09-01 13:13:45 +03:00
Miguel Freitas
10079adfde
don't bother Arvid with our bastard fork :-)
2015-12-23 17:44:55 -02:00
Miguel Freitas
aa04f7e4e2
warning fix
2015-12-20 13:33:50 -02:00
Miguel Freitas
1c95fa8cd9
implement new peek / hashcash extension in our libtorrent fork
...
discussion here: https://groups.google.com/d/msg/twister-dev/oDKUr9oOBHg/6rzqqKoUCQAJ
2015-12-10 21:59:18 -02:00
Miguel Freitas
187e052240
backport from upstream: fixed uTP vulnerability
...
677e642754
2015-10-18 23:02:01 -02:00
Miguel Freitas
cfa194b3f8
port lazy_bdecode from upstream to 'fix bound-checking issue in bdecoder'
...
c821b9eb0e
2015-10-18 20:15:53 -02:00
Miguel Freitas
33a4e14941
sync lazy_bdecode to 0.16 branch before applying security fix
2015-10-18 19:38:36 -02:00
erqan
4bb3be93b2
building for ios on linux
2015-07-19 04:35:22 +03:00
Miguel Freitas
2668b4d832
keep track of torrent location (n,k) for direct messages as well.
...
this way we may check for piece delivery to the network.
2015-05-31 09:06:42 -03:00
Miguel Freitas
1056d874bf
introducing a new torrent piece property to be persisted on disk: max_seen
...
is the maximum availability (peer count) ever seen for this piece.
new rpc getpiecemaxseen.
2015-05-30 20:49:13 -03:00
erqan
5fa729fc47
adding new methods for public and private favorites
2015-05-04 16:03:00 +03:00
Miguel Freitas
57b554f7cf
add another flag field to getposts to allow selecting only DMs or RTs.
...
hint: to get (encrypted) DM posts use values "2 2"
2015-04-19 17:30:41 -03:00
Miguel Freitas
a977b88895
update ip_voter from upstream to get this nice maybe_rotate method.
...
now the new ip can finally gain over a well voted old ip.
2015-04-09 23:38:04 -03:00
Miguel Freitas
04384df7c4
report the two local/external addresses we know about (which should be the same)
...
in 'getinfo' rpc. i believe this should help debugging dht connectivity problems
when we change networks, or router gets a new ip etc.
2015-04-08 22:24:56 -03:00
Bernard Spil
cacca0a56c
Fix build with LibreSSL
...
LibreSSL includes work slightly different, need to specifically rand.h was not included making build fail where RAND_add is used
2015-03-29 21:49:05 +02:00
Miguel Freitas
d47fa93bb9
android build fixes
2014-12-26 20:01:33 -02:00
Miguel Freitas
4a365f68b4
fix for picky compiler complaining about no return
2014-12-24 17:53:56 -02:00
Miguel Freitas
fecaa56ea1
fix strange android compilation failure (The file boost/detail/endian.hpp needs to be set up for your CPU type)
2014-12-06 11:36:08 -02:00
Miguel Freitas
7bc233c1a7
fix compilation for android which uses boost::posix_time::ptime (TORRENT_USE_BOOST_DATE_TIME)
2014-12-06 11:17:47 -02:00
Miguel Freitas
b8e264f4d1
0.9.28: better enforcement of DHT upload rate limit for non-locally generated requests.
...
the limit applies to: DHT replies, refreshes of stored items, checking for status/tracker and proxy server.
local requests (eg. dhtgets from the UI) are excluded from this limit, so user experience is not affected.
in other words: we limit only the band contributed back to twister network for maintenance tasks.
this should improve resilience against some sorts of denial-of-service attacks and also
prevents saturating the uplink as observed recently.
2014-12-04 16:45:43 -02:00
Miguel Freitas
4d43c08a5b
ignore far-future message in getposts
2014-09-21 11:35:52 -03:00
Miguel Freitas
a7e9b67e37
don't accept DHT posts with time in far-future.
...
(timeline still need to be fixed though)
2014-09-21 11:10:59 -03:00
miguelfreitas
00b67caea4
Merge pull request #260 from dryabov/search
...
add search method
2014-09-21 09:47:26 -03:00
Denis Ryabov
00ae4b712d
fix work when dht is not loaded yet
2014-09-02 11:41:57 +04:00
Denis Ryabov
701d84e7f8
increase allowed size of putData request (size of 140-characters UTF-8 message may be up to 140*4=560 bytes)
2014-08-28 23:07:37 +04:00
Denis Ryabov
ab48764e38
add search method
2014-08-27 01:03:37 +04:00
Miguel Freitas
c7e35d86a2
dont assume the DHT item storage is confirmed just because we got some results back,
...
compare the contents instead. should improve reliability of mentions.
2014-08-18 19:37:32 -03:00
Miguel Freitas
5b3fb45b81
disable assert since "there are ways for this to happen legitimately". should fix #176
2014-07-22 14:49:12 -03:00
Miguel Freitas
3b0633fad4
global dht traffic seems too high: implement probabilistic refresh for users that post too much.
...
this should reduce the traffic for now but me may want to tweak these settings later.
the most recent posts are priorized regardless of how much the user posts.
2014-07-19 12:38:04 -03:00
Miguel Freitas
17207a8064
move refresh period settings to a single place and add some notes about it.
2014-07-17 11:10:33 -03:00
Denis Ryabov
f08567e650
unify style
2014-07-17 16:31:37 +04:00
Denis Ryabov
2e17020e46
Merge branch 'master' of git://github.com/miguelfreitas/twister-core into dht_refresh_1
...
Conflicts:
libtorrent/include/libtorrent/ptime.hpp
2014-07-17 16:27:47 +04:00
Miguel Freitas
7240fee4e9
update time.cpp/ptime from upstream (r10083) trying to fix non-monotonic time issues with win32.
...
still one assert from disk_io_thread must be commented out to avoid aborting.
2014-07-14 22:20:33 -03:00
Miguel Freitas
c9d6b2d0af
fix mingw32 sse2 crash and assertion failure (winxp)
2014-07-13 16:08:06 -03:00
Denis Ryabov
ccf6634d41
less aggresive dht refresh
2014-07-08 23:11:05 +04:00
Denis Ryabov
79be353eed
remove refresh_per_tick_limit based logic in flavour of 100ms delay
2014-07-08 21:22:49 +04:00
Denis Ryabov
dc7c4e5627
fix store/load confirmed field
2014-07-08 18:28:47 +04:00
Denis Ryabov
683f55f8d2
confirmation for local items only
2014-07-08 17:01:53 +04:00
Denis Ryabov
785d05f10c
simpler expression for random diffusion
2014-07-08 15:19:56 +04:00
Denis Ryabov
847659f7dd
update refresh time on confirm
2014-07-08 15:18:22 +04:00
Denis Ryabov
601e0422e4
prevent flow of unconfirmed requests after twister start
2014-07-08 15:01:48 +04:00
Denis Ryabov
1945adaddf
check for empty response
2014-07-08 15:00:58 +04:00
Denis Ryabov
066435719d
limit refreshes per tick to refresh_per_tick_limit=20, fix boost::ref(item)
2014-07-08 13:56:42 +04:00
Denis Ryabov
61b057175f
wait 1 minute before start refreshing
2014-07-08 13:16:30 +04:00