Commit Graph

9 Commits

Author SHA1 Message Date
Bora M. Alper
738e5c1e0f
[magneticod] fix OOM caused by large BT msg size 2019-05-19 17:23:36 +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
c30f69d1e9
leech now correctly calls OnError when ext msg cannot be decoded 2018-12-30 08:22:50 +03:00
Bora M. Alper
22049380c5
better connection handling (at close) in leech 2018-12-25 18:36:51 +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