Commit Graph

177 Commits

Author SHA1 Message Date
Adam Dobrawy
14979c96ce Limit metadata size
Malicious or malfunctioning peer can try send a huge metadata size what causes huge memory usage and to overflow them.
2017-04-30 21:00:33 +02:00
Bora M. Alper
2251664dbd Merge pull request #54 from s723138643/master
if there is no data to send, we should unregister WRITE event
2017-04-29 15:12:34 +04:00
s723138643
ed13036588 if there is no data to send, we should unregister WRITE event 2017-04-29 10:22:38 +08:00
Bora M. ALPER
3b39c99206 v0.3.0 released, with very significant improvements!
magneticod:
* Stalled DisposablePeers are shut down after 120 seconds (fixes #47 and #38)
* Improved performance, thanks to @ngosang, @ad-m, and all other contributors (fixes #48)
* Default logging level is now set to INFO (since many users would freak out after seeing "peer failed" messages...)

magneticow:
* Search speed improved A LOT, like "A  L O T"! (fixes #8)
  (for the curious, the problem was that magneticow initialised database *every* *single* *time* a request is made because
  "the global application context" (`flask.g`) didn't work for some reason I don't know. Now it's blazing fast!
* A bit of logging added to assist the user. This is especially important as magneticow now takes a bit of time to initialize itself
  (as reasonably expected) and will not be able to handle any requests until it's complete.
* A faster but possibly less accurate (and not-guaranteed behaviour dependent) calculation of the number of torrents.
* Thousands separator for the torrent count in the homepage.
2017-04-26 01:47:13 +04:00
Bora M. Alper
9dc1684e75 Merge pull request #33 from ngosang/feature/exceptions
Handle ConnectionReset and ConnectionRefused errors in dht.py
2017-04-25 21:52:05 +04:00
Bora M. Alper
8063480fe5 Merge pull request #43 from ngosang/speedup_find_nodes
optimize find_nodes bencoding and random_bytes generation
2017-04-21 01:11:23 +04:00
Diego
fb4c897ec6 improve __random_bytes function performance 2017-04-20 22:53:32 +02:00
Diego
bc1ceac530 optimize find_nodes bencoding 2017-04-20 22:43:51 +02:00
Bora M. Alper
36b13e2e4c Merge pull request #40 from JeffreyVdb/feature-ignore-override-compose
Ignore docker-compose.override.yml
2017-04-19 01:49:37 +04:00
Jeffrey Vandenborne
32bff60ff3 Ignore docker-compose.override.yml
Information on this change can be found on:
https://docs.docker.com/compose/extends/

A docker-compose.override.yml can override configuration in
docker-compose.yml as the name suggests.
2017-04-17 21:03:17 +02:00
Diego
4f020cfad1 Handle connection exceptions in dht 2017-04-16 21:02:34 +02:00
Bora M. Alper
7ffe670147 Merge pull request #13 from offbyone/master
Dockerize magnetico as a pair of conjoined containers
2017-04-16 22:08:37 +04:00
Bora M. Alper
98fac967d2 Merge pull request #24 from g-goessel/add_index_counter
Adds a counter of indexed torrents on the homepage
2017-04-14 00:14:10 +04:00
g_goessel
059330c188 Remove unused variable and resolve styling issues 2017-04-13 22:07:18 +02:00
guimoz
d3ff2419aa Refactoring of the counter code 2017-04-13 19:20:34 +02:00
guimoz
28109eb586 Adds a counter of indexed torrents on the homepage 2017-04-12 21:06:59 +02:00
Chris Rose
dd40222fd6 Dockerize magnetico as a pair of conjoined containers
docker-compose links them, they share a DB on a volume container, and
expose the web interface on the host port 12345
2017-04-10 09:13:14 -07:00
Bora M. Alper
f9cb28f31a Absence notice
finals are coming...
2017-04-10 18:01:13 +04:00
Bora M. Alper
0e48dff4fc Updated PATH instructions for macOS 2017-04-10 17:57:59 +04:00
Bora M. Alper
8b598da790 Updated PATH instructions for macOS 2017-04-10 17:56:27 +04:00
Bora M. ALPER
1c15afb45a v0.2.0 released
## Changes
### mangeticod
* Cython-based bencoder.pyx is  used instead of our own pure Python solution.
* `--node-addr` commandline argument added.
* TCP QUICKACK is automatically enabled (instead of by default) so that magneticod can work on macOS as well.
* Database index added for `info_hash` column of `torrents` table.

### magneticow
* Some small performance improvements for search.
2017-04-10 17:44:09 +04:00
Bora M. Alper
dd37830b80 Merge pull request #16 from nneonneo/master
Fix magneticod on macOS.
2017-04-10 15:47:44 +04:00
Robert Xiao
a6ee9d509d Fix magneticod on macOS.
macOS lacks the `TCP_QUICKACK` option. Since this is simply an
optimization, we can safely skip it on macOS.
2017-04-09 20:03:23 -04:00
Bora M. Alper
d848d02da0 removed (c) infringing SS from README.rst
and replaced with greater Ubuntu!
2017-04-05 19:27:31 +04:00
Bora M. ALPER
42b2d64d20 screenshots are added to README.rst 2017-04-03 12:11:57 +04:00
Bora M. ALPER
8a62e6bc2a fixed installation instructions to install locally 2017-04-03 02:59:09 +04:00
Bora M. ALPER
257912a12f initial commit 2017-04-03 00:11:58 +04:00