Commit Graph

226 Commits

Author SHA1 Message Date
Jan Grewe
2cba4905f7 Merge branch 'master' of github.com:jangrewe/magnetico 2018-12-30 10:49:44 +01:00
Jan Grewe
16596806d3 Merge branch 'master' of https://github.com/boramalper/magnetico 2018-12-30 10:48:31 +01:00
Bora M. Alper
889d7c95d2
Update Makefile
Co-Authored-By: jangrewe <jan@faked.org>
2018-12-30 10:42:10 +01:00
Bora M. Alper
45d37a528c
fixed Travis CI build status tag 2018-12-30 08:30:56 +03:00
Bora M. Alper
06383d1a2e
stylistic changes 2018-12-30 08:25:03 +03:00
Bora M. Alper
e01a3bed40
better error handling at sqlite3.go 2018-12-30 08:24:44 +03:00
Bora M. Alper
e7f5fb0831
better error handling at iso8601 2018-12-30 08:24:33 +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
eea341407d
fixed travis, added vet and staticcheck in makefile, modified READMEs 2018-12-30 08:21:56 +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
5fd07f7ab5
fixed (v2) "unable to open database file" 2018-12-25 18:34:19 +03:00
Bora M. Alper
020b55104f
better error handling in c&w 2018-12-24 21:30:07 +03:00
Bora M. Alper
64543d71d7
fixed "unable to open database file" (potentially), and errors wrapped in pkg/persistence 2018-12-24 18:27:36 +03:00
Jan Grewe
11202f1b24 build with alpine, so that it runs in alpine 2018-11-25 18:46:49 +01:00
Jan Grewe
38179c271b Fix errors about go-bindata when building magneticow 2018-11-25 18:23:40 +01:00
Jan Grewe
f9d6146747 fix: label multicow build stage correctly 2018-11-25 17:54:31 +01:00
Jan Grewe
b70e868a2d use multi-stage build for Docker images, decreasing the size by >80% 2018-11-25 17:51:57 +01:00
Bora Alper
d5a03feb43 v0.7.0-beta1 is ready! 2018-09-21 13:00:23 +01:00
Bora Alper
8642b488c8 Merge branch 'master' of github.com:boramalper/magnetico 2018-09-21 12:55:07 +01:00
Bora Alper
c70d338ea5 Go is the new master! 2018-09-21 12:51:09 +01:00
Bora Alper
e2f4a3873f added donation links on README.md 2018-09-02 19:26:54 +03: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 M. Alper
6cb7f3783e
fixes #133 2018-08-17 16:02:44 +03:00
Bora Alper
afbe7cd384 persistence: fixed tons of things, read the full description
- value returned from last_insert_rowid() is now checked
- INSERT OR IGNORE INTO torrents is removed in favour of explicitly checking if the torrent is in the database
- changed trigger names for keeping 'torrents_idx' up to date
- fixed 'modified_on' once again, but this time for sure (it seems...)
2018-08-16 13:41:25 +03:00
Bora Alper
1ee35d02c6 persistence: fixed nil error on empty 'torrents' and changed "modified_on" 2018-08-15 11:53:07 +03:00
Bora Alper
4854239576 [magneticod] added mutex to BT/metadata/Sink.incomingInfoHashes 2018-08-07 10:32:12 +03:00
Bora Alper
aa40589e0a updated Makefile (.PHONY) 2018-08-07 10:31:26 +03:00
Bora Alper
f7d426c200 updated .travis.yml 2018-08-07 10:30:23 +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
e4bb7b5b35 fixed .travis.yml (4) 2018-08-03 13:11:36 +03:00
Bora Alper
0d77ddee94 fixed .travis.yml (3) 2018-08-03 12:54:26 +03:00
Bora Alper
c7dd6b9285 fixed .travis.yml #2 2018-08-03 12:23:00 +03:00
Bora Alper
e0a323d01c fixed .travis.yml 2018-08-03 11:51:20 +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
Bora Alper
a9cf795562 magneticow api is now *completely* done! 2018-07-08 12:08:24 +03:00
Bora Alper
ba1be368cf magneticow & api: statistics are now working! 2018-07-07 14:56:34 +03:00
Bora Alper
1e4b6d55aa magneticow: feeds now work! 2018-07-01 18:16:17 +03:00
Bora Alper
80881c42c3 magneticow: most recent torrents now works correctly 2018-07-01 17:30:06 +03:00
Bora Alper
cab54c6ec1 persistence: now using Row Value Comparsions as it should been using 2018-07-01 17:29:42 +03:00
Bora Alper
e20cdca890 magneticow: orderBy now works at API endpoint, no web interface yet 2018-06-29 20:08:00 +03:00
Bora Alper
3a45f17647 now torrent pages work too!
- Changed the URL structure of torrent pages:
  Before:
    /torrents/{{infoHash}}/{{name}}
  After:
    /torrents/{{infoHash}}
2018-06-29 18:58:57 +03:00
Bora Alper
0501fc3e3c magneticow: search now works perfectly!
- support for ordering is yet to be implemented
2018-06-19 18:49:46 +03:00