Kay Kurokawa
4cb461601e
result must be set here, otherwise it will not be defined when used later. Add test for it
2018-03-28 15:53:46 -04:00
Kay Kurokawa
75b977dff9
we just have one supplier not a list of suppliers
2018-03-28 15:53:46 -04:00
Kay Kurokawa
0f3385e4dc
make the single hash announce duration adjustable in DHTHashSupplier
2018-03-28 15:53:46 -04:00
Jack Robison
446c3a88dc
refactor DHTHashAnnouncer and iterativeAnnounceHaveBlob
...
-use looping call for running manage function rather than a scheduled
callLater
-track announce speed
-retry store requests that failed up to 3 times
-return a dict of {blob_hash: [storing_node_id]} results from
_announce_hashes
_refreshRoutingTable inline cb refactor
-add and use DeferredLockContextManager
-don't trap errback from iterativeFindNode in iterativeAnnounceHaveBlob
2018-03-28 15:53:45 -04:00
Jack Robison
e671005c3c
update BlobManager to use SQLiteStorage, remove old database functions
...
-remove blob upload/download history
2018-02-13 10:27:50 -05:00
Kay Kurokawa
989f77c00a
increase SINGLE_HASH_ANNONCE_DURATION from 1 to 5
2017-12-05 11:55:59 -05:00
Kay Kurokawa
7e8f3254b1
Add to DHT Node class initialization argument peerPort where it serves blobs, instead of specifying it in announceHaveBlob
2017-11-07 09:56:40 -05:00
Jack Robison
838436d641
Merge remote-tracking branch 'origin/fix_blob_reader_closing'
2017-09-29 12:37:15 -04:00
Jack Robison
9de4657a4d
fix blob history and callback from _download_succeeded
...
previously _download_succeeded did not block on blob_completed,
presumably because even longer ago it did not block on a deriving
immediate_announce call and thus took a long time to return
2017-09-28 14:04:02 -04:00
Kay Kurokawa
aab43c8d6c
close the reader directly instead of calling close_read_handle()
2017-09-27 17:30:20 -04:00
Jack Robison
6cbe86d057
rename is_validated() to get_is_verified() to distinguish from verified property
2017-09-20 14:02:34 -04:00
Alex Grintsvayg
02d4444780
fixed shutdown messages
2017-08-09 19:10:11 -04:00
Alex Grintsvayg
2353dbcb00
refactor analytics
2017-04-26 14:19:03 -04:00
Alex Grintsvayg
8f3b53197f
dont add expected payment when payment rate is 0
2017-03-20 15:37:45 -04:00
Kay Kurokawa
3522f9af7d
use utils.call_later in DHTHash Announcer
2017-02-20 16:48:29 -05:00
Jack Robison
1a6290eacc
log blob count at startup
2017-02-16 11:17:37 -05:00
Job Evers-Meltzer
2a45c91175
fix get_blob calls with upload_allowed arguments
2017-02-15 06:48:58 -06:00
Kay Kurokawa
34f5bc93ae
adding immediate announce option to hash announce
2017-02-13 17:27:10 -05:00
Kay Kurokawa
8e0f71ac74
Make hash reannounce time adjusted based on the queue of hashes yet to be announced, add test for DHTHashAnnouncer
2017-02-13 17:27:10 -05:00
Job Evers-Meltzer
7696f30009
add debug log to hash announcing
2017-01-21 22:48:16 -06:00
Kay Kurokawa
7d5dd1ff51
fix bug in ServerProtocol
2016-12-28 14:34:38 -05:00
Job Evers-Meltzer
56d394fb5f
Add timing to hash announcements
...
This could potentially be a performance issue
on reflector or any daemon with a large number of blobs.
2016-12-15 18:58:16 -06:00
Job Evers-Meltzer
3585d861ff
Add TRACE level logging
2016-12-15 18:58:16 -06:00
Job Evers-Meltzer
c30ea04959
Remove commented code
...
This is the result of running eradicate (https://github.com/myint/eradicate )
on the code and double-checking the changes.
2016-12-15 18:58:06 -06:00
Job Evers-Meltzer
7bce37a720
pylint: add check for missing-final-newline
2016-12-14 19:21:59 -06:00
Job Evers-Meltzer
f796f701f2
Immediately announce completed blobs
...
It doesn't seem necessary to wait up to 60 seconds for a new blob to
be announced to the dht. Immediately announce it and schedule the next
announce time as usual.
2016-12-14 19:05:24 -06:00
Job Evers-Meltzer
b64fa51567
fixup long lines
2016-12-07 09:38:34 -05:00
Job Evers-Meltzer
5bccfdb244
add logging to shutdown process
2016-11-03 14:42:45 -05:00
Job Evers-Meltzer
3a91896d8a
track the amount of data uploaded
2016-10-20 11:28:05 -07:00
Job Evers-Meltzer
2e59e5e3b8
extract individual functions
2016-10-20 11:16:36 -07:00
Jack
3f5efb1fa3
fix problems in blobrequester
...
-also move is_generous_host into a conf setting
2016-10-20 01:35:18 -04:00
Jack
19c2264429
clean up
2016-10-13 13:35:55 -04:00
Jack
88be425ab2
fix pylint errors
2016-10-05 23:24:22 -04:00
Jack
4f60a98eb2
fix functional tests, add a few unit tests,
...
-add ‘generous’ parameter for NegotiatedPaymentRateManager to turn free
hosting on/off, by default set to true.
2016-10-05 22:58:34 -04:00
Jack
fd9bc6214a
fix functional tests
2016-10-03 15:40:27 -04:00
Jack
967700dc28
BlobRequestHandler and Strategy tests
2016-10-03 02:44:58 -04:00
Jack
b853656aa6
Merge branch 'master' into blob-prices
...
# Conflicts:
# lbrynet/core/server/BlobRequestHandler.py
2016-09-30 00:11:53 -04:00
Job Evers-Meltzer
d05bbea131
refactor BlobRequestHandler
2016-09-28 17:00:34 -07:00
Jack
1cc6b7658c
get uploads working
...
-add error catching in exchange rate manager
-add free data on first request with default negotiation strategy
2016-09-27 23:56:08 -04:00
Jack
1720cce3b0
negotiated downloads
...
-uploads are still underway
2016-09-27 13:52:44 -04:00
Jack
5dd29da84f
blob upload/download history and BlobPriceAndAvailabilityTracker
2016-09-23 03:02:17 -04:00
Jack
b010192f8e
improve logging
2016-09-14 22:28:59 -04:00
Jack
c046cd02d5
call blob_completed after receiving blob
2016-08-18 05:58:13 -04:00
Jack Robison
8d14fe6a90
Merge pull request #113 from lbryio/log-to-loggly
...
Log to loggly
2016-08-09 02:30:55 -04:00
Job Evers-Meltzer
fccdf32c9f
Remove all unused imports; add check to pylint
2016-08-08 15:42:35 -05:00
Job Evers-Meltzer
9a9b540701
Move some ServerRequestHandling logging to debug level
2016-08-08 15:04:50 -05:00
Job Evers-Meltzer
db8daf20b7
quiet noisy log statement
2016-08-05 05:50:24 -05:00
Job Evers-Meltzer
53bf1fe4fd
add send_blob tests
2016-07-10 21:56:00 -05:00
Jimmy Kiselak
25e1427a84
fix error that occurred when one connection's download was stopped due to another download finishing
2016-01-22 15:50:18 -05:00
Jimmy Kiselak
bb5cd49327
Use named loggers, fix some pep8 formatting mistakes
2015-09-08 15:42:56 -04:00