Commit graph

385 commits

Author SHA1 Message Date
Victor Shyba
202861a900 fix unpack leftovers 2019-08-21 22:03:24 -03:00
Victor Shyba
4c41e7cb29 check headers bounds on access 2019-08-21 22:03:24 -03:00
Alex Grin
f7443061ef
less verbose logging 2019-08-21 09:54:10 -04:00
Jack Robison
c4e0c659a7
fix missing perf_counter 2019-08-20 19:22:22 -04:00
Jack Robison
f6ba09b171
mypy 2019-08-20 15:41:27 -04:00
Jack Robison
b827881024
mypy 2019-08-20 15:35:06 -04:00
Jack Robison
89e395b5f4
pylint 2019-08-20 15:26:00 -04:00
Jack Robison
c590954eb9
include connection latency in server selection 2019-08-20 15:11:01 -04:00
Jack Robison
a5af3866fd
time.time -> time.perf_counter 2019-08-20 14:56:13 -04:00
Jack Robison
1bef56f030
disconnect from duplicate servers (same ip, different dns) 2019-08-20 14:55:24 -04:00
Jack Robison
9045737504
track response time for server.version only 2019-08-20 14:54:55 -04:00
Jack Robison
0e48772c84
track connection latency 2019-08-20 14:45:53 -04:00
Jack Robison
72690b5cff
raise asyncio.TimeoutError 2019-08-20 14:19:50 -04:00
Jack Robison
07bae26fd3
close connection and reraise on CancelledError 2019-08-20 14:16:56 -04:00
Victor Shyba
7b0e4617d3 fix db test stability 2019-08-20 04:11:04 -03:00
Victor Shyba
af797296ed rolling averages on response time 2019-08-19 16:50:24 -03:00
Victor Shyba
c826c7da0d take load into consideration when picking fastest 2019-08-19 14:02:30 -03:00
Victor Shyba
20af1396b9 refactor stop 2019-08-19 14:02:30 -03:00
Victor Shyba
f567aca532 retry and batch requests, fix some loose ends 2019-08-19 14:02:30 -03:00
Alex Grin
ff73418fc1
Merge pull request #2371 from lbryio/basenetwork_refactor
refactor basenetwork so each session takes care of itself
2019-08-16 10:19:53 -04:00
Victor Shyba
ab6944b7b0 wallet server: dont fail to start on segwit txs 2019-08-14 10:26:02 -03:00
Victor Shyba
4d741bd200 update lbrycrd to 17, add option to disable segwit for now 2019-08-13 18:07:15 -03:00
Victor Shyba
f3a163b382 fix names and types 2019-08-12 18:16:58 -03:00
Victor Shyba
011b7f090f add urgent reconnect when api is called to bypass retry delay 2019-08-12 18:16:58 -03:00
Victor Shyba
4ead92cfbe fixes from review 2019-08-12 18:16:58 -03:00
Victor Shyba
9ee2f30df4 timeout instead of cancel + minor fixes 2019-08-12 18:16:58 -03:00
Victor Shyba
4a749f6c38 on timeout, restore latency to max 2019-08-12 18:16:58 -03:00
Victor Shyba
cf924373f6 make stream test an asyncio test 2019-08-12 18:16:58 -03:00
Victor Shyba
d1f5b25418 merge repeated subscription events 2019-08-12 18:16:57 -03:00
Victor Shyba
822f53c888 remove unused things 2019-08-12 18:16:57 -03:00
Victor Shyba
f04c5ee902 fix test reliability 2019-08-12 18:16:57 -03:00
Victor Shyba
022d60ec2c both exceptions can be raised, depending on when the call happens 2019-08-12 18:16:57 -03:00
Victor Shyba
8fce374cae race condition where the request is sent and connection lost right after 2019-08-12 18:16:57 -03:00
Victor Shyba
e78e2738ef basenet refactor 2019-08-12 18:16:57 -03:00
Victor Shyba
5728493abb refactor basenetwork so each session takes care of itself 2019-08-12 18:16:57 -03:00
Lex Berezhny
0d6248fbeb fix torba tests 2019-08-12 10:22:14 -04:00
Lex Berezhny
98d4d00f96 most commands now work across all accounts 2019-08-12 10:22:14 -04:00
Victor Shyba
0bb09ae91e use checkpoint to speed up 2019-07-23 17:44:13 -04:00
Victor Shyba
afeff61268 fix repair and tests 2019-07-23 17:44:13 -04:00
Victor Shyba
45fb673e49 dont fail when s3 is out of reach 2019-07-23 17:44:13 -04:00
Victor Shyba
df41a82b23 fix integration test 2019-07-22 11:31:45 -04:00
Victor Shyba
34500e07c6 change picking logic to probe the session before considering it a good session 2019-07-22 11:31:45 -04:00
Lex Berezhny
e4f802e5f4 when resolving inside channel break a tie of claims with same effective_amount by using height 2019-07-20 15:45:15 -04:00
Lex Berezhny
16fc2c456f moved executing create index queries outside of a tx 2019-07-20 15:45:15 -04:00
Lex Berezhny
f406db85dc pylint again 2019-07-18 19:54:38 -04:00
Lex Berezhny
71551058ce query interpolation 2019-07-18 19:54:38 -04:00
Victor Shyba
6997ea608d fix reconnect and timeouts 2019-07-16 23:59:28 -03:00
Jack Robison
d319761483
interrupt slow queries and log them for debugging
- add QUERY_TIMEOUT_MS env variable

- return sqlite timeout errors, jsonrpc error code -32000
2019-07-16 20:05:45 -04:00
Lex Berezhny
dd9bf04e35 default to HOST for WEBSOCKET_HOST if not set 2019-07-16 12:05:43 -04:00
Victor Shyba
f96443515a optimize header check 2019-07-16 00:58:36 -04:00