Commit graph

52 commits

Author SHA1 Message Date
Niko Storni
264390a2b2 add debug code 2020-07-09 15:02:32 +02:00
Niko Storni
fdcc41829a handshake changes 2020-07-09 15:02:32 +02:00
Niko Storni
09c7718f30 refactor code 2020-07-09 15:02:32 +02:00
Niko Storni
8a5f57b14f remove QUIC protocol
add HTTP3/QUIC protocol
2020-07-09 15:02:32 +02:00
Niko Storni
90997b9918 use new connections for each blob 2020-07-09 15:02:32 +02:00
Niko Storni
e0da2674a1 use new connections for each action
reduce timeout
2020-07-09 15:02:32 +02:00
Mark Beamer Jr
de1fb63a1c fix potentially missing client or stream for a quic store 2020-07-09 15:02:32 +02:00
Mark Beamer Jr
e98794e125 Add close function for quic store so routines do not hang waiting for timeout. 2020-07-09 15:02:32 +02:00
Niko Storni
fb0004bac4 increase packet size
add retro-compatibility
remove unused SPV servers
remove travis test failure
2020-07-09 15:02:32 +02:00
Alex Grintsvayg
4a902597df
thats confusing 2020-03-30 16:05:08 -04:00
Alex Grintsvayg
e6ba61fce2
more info on json errors 2020-03-20 10:15:41 -04:00
Alex Grintsvayg
d1063bd54e
log full traces more 2020-02-25 18:22:22 -05:00
Alex Grintsvayg
d291c063ec
add traces to unmarshall errors 2020-02-25 15:49:51 -05:00
Alex Grintsvayg
11e50a6022
remove unused stats code 2020-01-02 13:27:34 -05:00
Alex Grintsvayg
5d8a2d697c
use labels for different error types 2020-01-02 13:12:33 -05:00
Alex Grintsvayg
50089481fb
switch to prometheus for metrics 2020-01-02 13:12:33 -05:00
Andrey Beletsky
52127eee7c Remove setting default client timeout in peer.NewStore 2019-12-16 22:47:35 +07:00
Andrey Beletsky
95eb94f5a7 Remove excessive INFO-level logging 2019-12-16 21:52:51 +07:00
Andrey Beletsky
834733b675 Add options for peer.NewStore to allow for setting TCP timeout 2019-11-22 18:56:20 +07:00
Mark Beamer Jr
86a553b876
upgrade to lbry.go v2.4.0 2019-11-13 19:11:35 -05:00
Alex Grintsvayg
69f1e0f4ca
make MemoryStore consistent with the New...() pattern 2019-10-03 16:49:28 -04:00
Alex Grintsvayg
2ca83139df
use stream.Blob for BlobStore interface 2019-10-03 16:34:57 -04:00
Alex Grintsvayg
a8230db802
rewrite getstream command using caching store 2019-10-03 16:13:08 -04:00
Alex Grintsvayg
acb9840871
add peer blob store, which gets blobs from a peer 2019-10-03 16:10:29 -04:00
Alex Grintsvayg
c1e8e7481f
fix getstream command to write as it downloads (or else it runs out of memory) 2019-09-27 14:38:49 -04:00
Alex Grintsvayg
08df3b167c
add getstream command to download a stream from a peer 2019-09-11 13:28:58 -04:00
Alex Grintsvayg
1a6b862c96
error on invalid blob hash length 2019-09-10 17:18:44 -04:00
Alex Grintsvayg
38401bf8d6
separate uploader into reusable component 2019-07-03 13:39:37 -04:00
Alex Grintsvayg
2e81b1ab03
add stat tracking for blob download. stream download will always say 0 2019-05-01 15:42:23 -04:00
Thomas Zarebczan
4569d04522
5 second timeout? wtf 2019-03-21 23:22:31 -04:00
Alex Grintsvayg
7a618f4228
ignore write error for closed connection 2019-03-18 16:29:28 -04:00
Alex Grintsvayg
2744080c6b
remove extra log statement 2019-02-08 20:19:58 -05:00
Alex Grintsvayg
31daec7054
comment out unreachable code 2019-02-08 17:29:31 -05:00
Alex Grintsvayg
00feaaf76c
more unique error messages 2019-02-08 17:28:09 -05:00
Alex Grintsvayg
a98990f573
track peer errors as well 2019-02-08 14:56:41 -05:00
Victor Shyba
922a9402aa supress timeouts and connection reset from logs as they are common for blob server 2019-02-06 17:04:57 -03:00
Alex Grintsvayg
e03810903a
ignore some errors in peer proto, add write deadline to peer proto 2019-01-25 16:49:45 -05:00
Alex Grintsvayg
b0b2d21a08
reduce logging on sending blobs 2019-01-17 16:49:19 -05:00
Alex Grintsvayg
5baa66f0aa handle new composite requests 2019-01-15 14:23:08 -05:00
Alex Grintsvayg
14d6d32a41 move dht to lbry.go repo 2019-01-09 17:52:30 -05:00
Alex Grintsvayg
8bb1242ed9 fixed some linting errors
found them using

```
gometalinter --skip=vendor --disable-all --enable=megacheck --enable=deadcode --enable=ineffassign --enable=interfacer --enable=errcheck ./...
```
2018-08-07 11:38:56 -04:00
Alex Grintsvayg
34cc92678b partial switch to new stopgroup. need to refactor to take advantage of child cancelation 2018-06-25 16:49:40 -04:00
Alex Grintsvayg
e480fa146f fixed a few channel lockups, fixed announced port in dht, successfully announced and served a blob 2018-06-21 11:26:48 -04:00
Alex Grintsvayg
4535122a06 starting to put together the pieces
- prism start command
- more configs for prism when assembling the pieces
- cluster notifies on membership change, determines hash range, announces hashes
2018-06-14 22:30:38 -04:00
Mark Beamer Jr
a2a0b27bc4 implemented stopper pattern
-made defer adjustments inline and deleted the separate function.
-adjusted method in upload to take the only parameter it requires.
-Implemented stopper param for reflector server
-Aligned Cluster New to NewCluster
-Adjusted DHT to use StopAndWait
-Removed blocking waitgroup add
-Unified all components under prism.
-Moved defer done outside of functions.
-renamed NewCluster to New
-fixed travis errors.
2018-06-13 09:36:44 -04:00
Mark Beamer Jr
35f98ce162 code cleanup
-Added travis support
-updated travis to analyze code beneath the root.
-refactored upload.go to fix travis errors.
-gocyclo should ignore test files. $GOFILES needed to be adjusted.
-fix rows.Close() ignoring error. Created func to handle so defer can be used when needed also.
-fixed ignored errors.
-fixed unit test that was not passing correctly to anonymous function.
-fixed govet error for passing param inside go func.
-removed returned error, in favor of logging instead.
-added error logging for ignored error.
-fixed potential race conditions.
-removed unused append
-fixed time usage to align with go standards.
-removed unused variables
-made changes for code review.
-code comments for exported functions.
-Documented bitmap.go and insert into contact list.
-Documented dht, message, bootstrap
-Fixed comment typos
-Documented message,node, routing_table, testing in DHT package.
-Documented server, client, prism, server and shared in peer and reflector packages.
-Documented the stores in Store package.
-made defer adjustments inline and deleted the separate function.
-adjusted method in upload to take the only parameter it requires.
2018-06-13 09:29:13 -04:00
Alex Grintsvayg
1075de77f5 started merging all components into one 2018-05-29 17:33:58 -04:00
Alex Grintsvayg
3b0a2df0ef added upload command, --conf and --verbose flags 2018-05-14 20:55:48 -04:00
Alex Grintsvayg
32a27c4e4d new errors.go 2018-03-01 16:28:25 -05:00
Alex Grintsvayg
0d458aefc3 add a few tests, better error handling 2018-02-07 15:53:53 -05:00