Commit Graph

62 Commits

Author SHA1 Message Date
Bora M. Alper
915700a6da
Bump magnetico version to 0.12.0 2020-11-27 18:10:38 +00:00
Bora M. Alper
376dba5810
staticcheck guided refactoring 2020-11-27 18:06:43 +00:00
Alexey Skobkin
ce393beb5e Implementing write-only part (magneticod) of the PostgreSQL back-end. 2020-11-23 21:46:53 +03:00
Bora M. Alper
1f654b5404
v.0.11.0 upgrade dependencies 2020-02-22 16:11:42 +00:00
Bora M. Alper
25b3e8a9aa
magneticod: fix database open error logging 2020-02-22 15:57:07 +00:00
Bora M. Alper
5a869e127b
magneticod: fix failing appdirs test on non-linux platforms 2020-02-22 15:54:31 +00:00
Bora M. Alper
a07e880ac5
bump version to v0.10.0 2020-02-22 15:44:02 +00:00
Bora M. Alper
1ca410774d
magneticow: display readme! 2020-02-22 15:42:14 +00:00
Bora M. Alper
9069506acc
magneticod: more conservative default values to prevent misuse 2020-02-22 14:27:21 +00:00
Bora M. Alper
18edea1c80
magneticod: potential improvements to indexing service 2020-02-22 14:26:45 +00:00
Bora M. Alper
58ef12c79d
magneticod: ignore 204 Method Unknown DHT errors 2020-02-22 14:26:17 +00:00
Luca Ruggieri
7ec193b598 fixed concurrency on routingTable map 2019-10-27 12:05:10 +01:00
Gary Coulbourne
ab00ab3de8
Fixed spelling
Querying was misspelled.  (noticed it while reading through the code to understand it)
2019-10-03 09:36:37 -04:00
Bora M. Alper
f749941ca0
version 0.9.0 and fix stdout hex encoding 2019-09-18 02:13:55 +01:00
Bora M. Alper
d7bfbc7182
use before set, see #174 (thanks to @Glandos) 2019-09-18 01:22:34 +01:00
Bora M. Alper
0e9dcba5b6 fix Docker setup 2019-09-18 01:21:50 +01:00
Bora M. Alper
93d424344a
[magneticod] remove Config section from README.md 2019-05-21 16:45:13 +01:00
Bora M. Alper
2cc4c4930a
[magneticow] fully client-side rendering + better file tree + API fixes 2019-05-21 13:31:51 +01:00
Bora M. Alper
75abc0ee02
[magneticod] add parameters to adjust resource usage 2019-05-21 13:31:01 +01:00
Bora M. Alper
d55e65419d
[magneticod] switch to pkg/profile from std lib 2019-05-19 17:24:27 +01:00
Bora M. Alper
061aff8ddc
[magneticod] detect UDP socket closure reliably 2019-05-19 17:23:55 +01:00
Bora M. Alper
738e5c1e0f
[magneticod] fix OOM caused by large BT msg size 2019-05-19 17:23:36 +01:00
Bora M. Alper
a40322d2d8
[magneticow] now works on mobile! 2019-05-19 17:21:50 +01:00
Bora M. Alper
5507ca371a
fix docker, move to go modules 2019-05-19 01:27:10 +01:00
Bora M. Alper
1fdfa131aa
v0.8.0 featuring BEP 51 "DHT Infohash Indexing" 2019-05-19 00:07:37 +01:00
Bora M. Alper
aae67090af
WIP for BEP 51 (complete but too buggy) 2019-05-15 13:18:42 +01:00
Bora M. Alper
b0c9198f8d
started working on BEP 51: DHT Infohash Indexing 2019-01-05 21:35:13 +03:00
Bora M. Alper
093d4c01f3
bumped version to v0.7.2 2019-01-01 18:29:34 +03:00
Bora M. Alper
8aaf9b4adf
fixed search error (#183) 2019-01-01 18:23:57 +03:00
Bora M. Alper
70371bf65a
updated READMEs of d/w 2018-12-31 12:47:56 +03:00
Bora M. Alper
87cec4ec37
magneticod: latest status messages now of priority info (rather than warn) 2018-12-30 19:40:35 +03:00
Bora M. Alper
f8a780068c
fixed no-auth problem (now works as intended) 2018-12-30 19:40:11 +03:00
Bora M. Alper
b375658fca
updated version to v0.7.1 2018-12-30 19:39:41 +03:00
Bora M. Alper
06383d1a2e
stylistic changes 2018-12-30 08:25:03 +03:00
Bora M. Alper
32fbe90604
max # of leeches limited, fixed parameters are now configurable 2018-12-30 08:24:14 +03:00
Bora M. Alper
c30f69d1e9
leech now correctly calls OnError when ext msg cannot be decoded 2018-12-30 08:22:50 +03:00
Bora M. Alper
3d80f7375c
PeerID is now honoured, -MC- is our prefix! 2018-12-25 18:38:13 +03:00
Bora M. Alper
22049380c5
better connection handling (at close) in leech 2018-12-25 18:36:51 +03:00
Bora M. Alper
67d2110b6d
added compiledOn info to d&w 2018-12-25 18:35:11 +03:00
Bora M. Alper
020b55104f
better error handling in c&w 2018-12-24 21:30:07 +03:00
Bora Alper
d5a03feb43 v0.7.0-beta1 is ready! 2018-09-21 13:00:23 +01:00
Bora Alper
2328087edb magneticow: web: enable caching static resources for 24 hours 2018-08-27 20:25:41 +03:00
Bora Alper
74ca0cac13 magneticow: api: return 404 when the resource is not found 2018-08-27 20:25:17 +03:00
Bora Alper
4c4dc1c173 added documentation, and Dockerfiles 2018-08-27 11:15:01 +03:00
Bora Alper
4854239576 [magneticod] added mutex to BT/metadata/Sink.incomingInfoHashes 2018-08-07 10:32:12 +03:00
Bora Alper
85fb2f5ea9 resolved reqq question
reqq question
=============
reqq:
  An integer, the number of outstanding request messages this client supports
  without dropping any. The default in in libtorrent is 250.

  "handshake message" @ "Extension Protocol"
    @ http://www.bittorrent.org/beps/bep_0010.html

TODO: maybe by requesting all pieces at once we are exceeding this limit? maybe
      we should request as we receive pieces?

answer
======
almost every single peer I encountered (for brief 10 minutes... which I think
is enough) had 255 as reqq value and the number of metadata pieces we requested
very rarely exceeded 20... I think it's fair to assume that exceeding "that
limit" will never be a question, and requesting the next piece as we receive
the previous one might increase the latency, unnecessarily.
2018-08-03 16:16:33 +03:00
Bora Alper
4b9b354171 fixed some go vet warnings, fixed formatting 2018-08-03 15:40:04 +03:00
Bora Alper
dc420da802 cumulative commit! (see the description for changes)
magneticod:
!!! disabled the gradual increase in congestion control, for some reason we still can't detect congestion...
- `*net.UDPAddr` in dht/mainline instead of `net.Addr`
- fixed a bug when a very small extension message received
- simplified how peer adress is handled in bittorrent/metadata/sink
- simplified TrawlingResult in dht/mainline

magneticow:
- use WAL for sqlite3

persistence:
- use URL.String() instead of url.Path in sql.Open() so that URL parameters are not lost...
2018-08-03 11:28:50 +03:00
Bora Alper
c07daa3eca magneticod: metadata leech refactored heavily, now much more readable <3
+ persistence: we now make sure that rows are always closed using `defer`
2018-07-24 15:41:13 +03:00
Bora Alper
0614e9e0f9 magneticow: basic auth now works! 2018-07-12 10:58:39 +03:00