176 Commits

Author SHA1 Message Date
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
Miguel Freitas
1f748f78c3 be more tolerant to detect outdated blockchain.
the main problem with running libtorrent with an outdated blockchain is to
refuse posts that are signed by new users. given this is only a temporary
state (and most of users are older than a day anyway) it is better to
be more tolerant instead of freezing up everything.
2015-01-02 14:59:58 -02:00
Miguel Freitas
6115190f44 new rpc dhtputraw 2014-12-22 19:33:48 -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
9d3b0744ff 0.9.27 new 'getmentions' api. return known mentions from users we follow.
never miss a mention from your friends anymore! :-)
(twister-html support pending)
2014-11-29 13:20:43 -02:00
Denis Ryabov
23a684f765 Update twister.cpp 2014-11-20 01:30:28 +03:00
Denis Ryabov
5809846532 Support double hashtags (and double mentions) in newpostmsg
See 706f17869b (https://github.com/miguelfreitas/twister-html/pull/202) and 07edcd08a9 (https://github.com/miguelfreitas/twister-core/pull/295)
2014-11-20 01:29:40 +03:00
Miguel Freitas
3d30b164f0 Merge branch 'libtorrent-status' of github.com:dryabov/twister-core into dryabov-libtorrent-status
Conflicts:
	src/twister.cpp
2014-11-13 17:06:30 -02:00
Denis Ryabov
41cc8385c1 fix type 2014-11-13 19:17:18 +03:00
Denis Ryabov
7271692310 add libtorrent's session status data to getinfo output 2014-11-13 19:08:02 +03:00
Denis Ryabov
07edcd08a9 Sync with twister-html/pull/202 (double hashtags)
Sync with https://github.com/miguelfreitas/twister-html/pull/202
2014-11-11 17:42:11 +03:00
Denis Ryabov
c5c7cde4a0 Update twister.cpp
More checks to be sure DM is in new format
2014-10-30 14:09:07 +03:00
Denis Ryabov
85c380ca6e Fix Issue #285
Fix case of msg is successfully "bdecoded", but it is not lazy_entry dictionary actually.
2014-10-30 12:48:56 +03:00
gubatron
861e5d8d20 unnecessary if statement 2014-10-16 01:53:53 -04:00
Miguel Freitas
6a15c24f6a add padding and random order to DMs copy-to-self 2014-09-27 10:50:15 -03:00
Miguel Freitas
4a0a21550b implement directmessage's copy-to-self to sync DMs between twister instances.
based upon @dryabov patches and long discussion in PR#258, see:
https://github.com/miguelfreitas/twister-core/pull/258/files
2014-09-27 10:29:22 -03:00
miguelfreitas
c1274dcb20 Merge pull request #272 from dryabov/fix_path_utf8_convert
Fix path utf8 convert
2014-09-21 11:54:36 -03:00
Miguel Freitas
4d43c08a5b ignore far-future message in getposts 2014-09-21 11:35:52 -03:00
miguelfreitas
00b67caea4 Merge pull request #260 from dryabov/search
add search method
2014-09-21 09:47:26 -03:00
Denis Ryabov
edbc39f32f print error messages 2014-09-19 10:54:22 +04:00
Denis Ryabov
261219d30f Windows: fix wrong convertion of path from utf8 to ansi in libtorrent's create_directory (GetDataDir() returns string in correct code page) 2014-09-18 22:36:35 +04:00
Denis Ryabov
4e47b5666e filter directmsgs by age 2014-09-02 13:20:18 +04:00
Denis Ryabov
2706e713a0 fix case-insensitive search 2014-09-02 12:50:15 +04:00
Denis Ryabov
0a25bdead9 fix description 2014-09-02 11:55:43 +04:00
Denis Ryabov
ecb13bbd0e fix access to stack var 2014-09-02 11:49:19 +04:00
Denis Ryabov
ace69ca57e ;;->; 2014-09-02 02:07:46 +04:00
Denis Ryabov
080ac30468 improve search 2014-09-02 02:07:27 +04:00
Denis Ryabov
c500409517 future-friendly filter ("not dm" instead of unclear "rt AND NORMAL") 2014-08-27 01:05:15 +04:00
Denis Ryabov
ab48764e38 add search method 2014-08-27 01:03:37 +04:00
Denis Ryabov
171fef62c5 add aging for hashtags 2014-08-21 13:24:55 +04:00
Miguel Freitas
6cae25e7ab fix dht count when using proxy (fix #231) 2014-07-04 08:44:26 -03:00
Miguel Freitas
2168e34677 miniupnp dependency removed, yes! :-) fix #130
libtorrent implements a upnp client: use it to map the other twisterd port.
2014-07-04 00:03:06 -03:00
Miguel Freitas
7f0f1a96af more consistency checks to dhtproxy (client) 2014-07-02 09:02:24 -03:00
Miguel Freitas
aac651390f if dhtproxy is enabled we may need to manually obtain peer lists from trackers 2014-07-01 23:22:35 -03:00
Miguel Freitas
e52f2c2527 dhtproxy: tunnel DHT traffic into TCP connections 2014-06-26 16:38:43 -03:00
Miguel Freitas
5af649a58a add consistency checks to node_impl::putDataSigned and a flag to mean that locally generated content should be kept for periodic refresh. 2014-06-25 17:47:44 -03:00
Miguel Freitas
7651134016 move dhtput signing to outside libtorrent.
old function (ses->dht_putData) is likely to be removed, i can't think of any use for it right now.
2014-06-25 16:28:50 -03:00
Miguel Freitas
67fd2184cd refactor m_dhtgetMap with 3 helper functions. now allow multiple listeners per targethash. 2014-06-25 14:44:12 -03:00
Miguel Freitas
2d23677f40 use shared_ptr for libtorrent::session. fix #217. 2014-06-20 16:38:49 -03:00
Miguel Freitas
8f03692074 wait twister threads to finish before destroying libtorrent session object.
may fix #200.
2014-06-01 18:03:15 -03:00
Miguel Freitas
5eb40d9ffd don't assume the fastest dht node to be the most up-to-date on a given resource.
that is, now we also enable multiple replies collecting for non-multi entries.
default parameter is a very small timeout for additional replies: that's a tradeoff between probability of getting an older value x slowing the UI.
2014-05-23 19:07:01 -03:00
erqan
33686c6fc5 added more delimiters for hashtag 2014-05-15 15:27:28 +03:00
erqan
7e4e6cbd2f added ' and ; to hastag delimiters 2014-05-15 15:09:32 +03:00
Miguel Freitas
fdb08e9ca0 make debug.log less verbose by default 2014-04-11 18:26:39 -03:00
Miguel Freitas
d4b1c9b569 check HAVE_BOOST_LOCALE and fix compilation when boost-locale is not available 2014-04-11 18:03:24 -03:00
Denis Ryabov
12f74e2bbc Merge branch 'master' of git://github.com/miguelfreitas/twister-core
Conflicts:
	Makefile.am
2014-04-10 18:30:13 +04:00
Miguel Freitas
4509ff7e3f fix crash reported by ankostis 2014-04-01 22:23:24 -03:00
Denis Ryabov
671bec8e78 an attempt to fix issue #111 2014-03-17 23:23:53 +04:00
Miguel Freitas
4c561ceb74 make sure torrent is unpaused if added/followed later on 2014-03-01 10:05:30 -03:00
Miguel Freitas
c17ccd5f66 more connections. less memory per connection. 2014-02-25 19:12:22 -03:00