Commit Graph
100 Commits
Author SHA1 Message Date
Sergey Cherepanov ebf4034ec7 consensus: fix race 2023-07-11 12:02:15 +02:00
Sergey Cherepanov 1a23081336 merge 2023-07-10 19:12:58 +02:00
Sergey Cherepanov ef128dd33f switch to uber/gomock 2023-07-10 15:41:22 +02:00
Sergey Cherepanov 648aa15b55 consensus: err invalid payload 2023-07-07 11:22:12 +02:00
Sergey Cherepanov cd3c6c736a consensus: remove log payload 2023-07-05 18:50:14 +02:00
Sergey Cherepanov 0c1d752acf consensus: err forbidden 2023-07-03 17:36:31 +02:00
Sergey Cherepanov b12a056dd9 consensus: use strings for ids 2023-07-03 16:19:24 +02:00
Sergey Cherepanov 92cbfb1cb3 change consensus proto and client 2023-06-30 19:42:07 +02:00
Sergey Cherepanov 59cf8b46fd consensus: change err offset 2023-06-29 14:52:47 +02:00
Sergey Cherepanov 50f94e7518 consensus: change err offset 2023-06-29 14:51:42 +02:00
Sergey Cherepanov cbdbe0c34b Merge branch 'main' of github.com:anyproto/any-sync into consensus-client 2023-06-29 14:40:07 +02:00
Sergey Cherepanov 02dd4783bc fix mock 2023-06-29 14:37:52 +02:00
Sergey Cherepanov ea6ca799e7 Merge pull request #38 from anyproto/fix-handshake-race
fix race in proto handshake
2023-06-28 11:00:39 +02:00
Sergey Cherepanov 6057fc2c7c Merge pull request #37 from anyproto/dependabot/go_modules/github.com/libp2p/go-libp2p-0.28.1
Bump github.com/libp2p/go-libp2p from 0.28.0 to 0.28.1
2023-06-28 10:27:34 +02:00
Sergey Cherepanov 8770da4abf fix race in proto handshake 2023-06-28 10:11:21 +02:00
Sergey Cherepanov a092f7b4a1 consensus client 2023-06-27 22:09:52 +02:00
Sergey Cherepanov 5a02d1c338 Merge pull request #36 from anyproto/subconn-limit
peer sub connections limit/throttling
2023-06-26 13:48:50 +02:00
Sergey Cherepanov f943991bc0 yamux bench test: open sub conn 2023-06-23 18:32:13 +02:00
Sergey Cherepanov f0ffc9b7bf descrease net.pool ttl 2023-06-23 18:27:59 +02:00
Sergey Cherepanov 291b8daf5f fix blinking test 2023-06-23 17:47:29 +02:00
Sergey Cherepanov e929d5431d correct throttle counting 2023-06-23 17:39:13 +02:00
Sergey Cherepanov 49c3178f65 cleanup 2023-06-23 16:57:51 +02:00
Sergey Cherepanov 894f4db1ff peer sub connections throtling + fixes 2023-06-23 16:54:55 +02:00
Sergey Cherepanov 78a3bc6aeb Merge pull request #30 from anyproto/dependabot/go_modules/github.com/prometheus/client_golang-1.16.0
Bump github.com/prometheus/client_golang from 1.15.1 to 1.16.0
2023-06-22 15:30:14 +02:00
Sergey Cherepanov 89d32044e3 Merge pull request #29 from anyproto/dependabot/go_modules/golang.org/x/net-0.11.0
Bump golang.org/x/net from 0.10.0 to 0.11.0
2023-06-22 15:30:02 +02:00
Sergey Cherepanov d1be3c8a43 Merge pull request #28 from anyproto/dependabot/go_modules/github.com/libp2p/go-libp2p-0.28.0
Bump github.com/libp2p/go-libp2p from 0.27.5 to 0.28.0
2023-06-22 15:29:51 +02:00
Sergey Cherepanov 53cbfca3ca Merge pull request #25 from anyproto/fix-metric-panic
validate rpc method name
2023-06-14 15:27:46 +02:00
Sergey Cherepanov 646f7fbedc remove mockgen from deps 2023-06-14 12:01:52 +02:00
Sergey Cherepanov d35ac55ee1 validate rpc method name 2023-06-14 11:55:59 +02:00
Sergey Cherepanov ff3fc68451 Merge pull request #24 from anyproto/fix-metrics
Peer addr in ctx + fix any-sync version
2023-06-13 19:09:58 +02:00
Sergey Cherepanov 31f0014783 add peer addr to cctx 2023-06-13 19:06:10 +02:00
Sergey Cherepanov 69f2cb8b1d app.VersionName fix any-sync version 2023-06-13 19:02:50 +02:00
Sergey Cherepanov d551201021 Merge pull request #22 from anyproto/GO-1466-client-version
Go 1466 client version
2023-06-13 15:49:00 +02:00
Sergey Cherepanov be58956bec provide client version in secureservice 2023-06-13 15:39:22 +02:00
Sergey Cherepanov 38090ee68f provide client version to rpc log 2023-06-13 15:32:46 +02:00
Sergey Cherepanov c753da8def client version to handshake 2023-06-13 15:30:14 +02:00
Sergey Cherepanov ba7cffb51a Merge branch 'main' of github.com:anyproto/any-sync into GO-1466-client-version 2023-06-13 14:49:14 +02:00
Sergey Cherepanov 3cfa70c291 Merge pull request #20 from anyproto/net-fixes
Net fixes
2023-06-13 14:17:10 +02:00
Sergey Cherepanov 531f61d9d6 Merge pull request #19 from anyproto/dependabot/go_modules/github.com/multiformats/go-multihash-0.2.3
Bump github.com/multiformats/go-multihash from 0.2.2 to 0.2.3
2023-06-13 14:03:01 +02:00
Sergey Cherepanov 1bfb7ff64f Merge pull request #18 from anyproto/dependabot/go_modules/github.com/ipfs/go-merkledag-0.11.0
Bump github.com/ipfs/go-merkledag from 0.10.0 to 0.11.0
2023-06-13 13:47:43 +02:00
Sergey Cherepanov 733027d798 remove multiconn.LastUsage + fix peer gc 2023-06-13 13:40:13 +02:00
Sergey Cherepanov 05b479e5fa yamux keep-alive config + remove write deadline for sub conns 2023-06-13 13:28:19 +02:00
Sergey Cherepanov 767f868a36 remove test test 2023-06-12 18:55:40 +02:00
Sergey Cherepanov ab6ecaa462 write deadline + check conn for close 2023-06-12 18:42:30 +02:00
Sergey Cherepanov cb0396c40f comments 2023-06-12 16:01:17 +02:00
Sergey Cherepanov 40cd112a2a app.VersionName 2023-06-12 15:58:23 +02:00
Sergey Cherepanov fb1df54941 Merge pull request #16 from anyproto/peer-active-subconn-gc
peer: gc active sub conn
2023-06-09 19:38:36 +02:00
Sergey Cherepanov 89afc03218 fix HandshakeIncompatibleVersion test 2023-06-09 19:28:09 +02:00
Sergey Cherepanov e97e6b68c6 peer: gc active sub conn 2023-06-09 19:14:23 +02:00
Sergey Cherepanov 15326da736 yamux: move listCtx to Init 2023-06-08 14:37:54 +02:00
Sergey Cherepanov 24ce490524 yamux: AddListener method 2023-06-08 14:36:14 +02:00
Sergey Cherepanov 85cf6b8332 debug server fixes 2023-06-08 13:38:00 +02:00
Sergey Cherepanov f9cb0c2dbb debug server 2023-06-08 13:27:01 +02:00
Sergey Cherepanov 33cbdd06a6 drpc conn config 2023-06-08 13:10:30 +02:00
Sergey Cherepanov c7828d0671 move server config to drpc config 2023-06-08 12:35:29 +02:00
Sergey Cherepanov 5a6661eab1 cleanup net config 2023-06-07 20:52:09 +02:00
Sergey Cherepanov 065ff11983 bump proto version as 1 2023-06-07 20:50:26 +02:00
Sergey Cherepanov 6c9d1b0e84 rpctest pool 2023-06-07 20:45:32 +02:00
Sergey Cherepanov 485c9dd768 yamux default timeouts 2023-06-07 14:49:44 +02:00
Sergey Cherepanov 5a8c69e557 Merge branch 'yamux' into new-sync-protocol 2023-06-07 13:34:31 +02:00
Sergey Cherepanov e7a61fb06b mod tidy 2023-06-07 13:32:14 +02:00
Sergey Cherepanov 46a3666198 Merge branch 'main' of github.com:anyproto/any-sync into yamux 2023-06-07 13:31:13 +02:00
Sergey Cherepanov ddc900a93c yamux fixes 2023-06-06 20:45:18 +02:00
Sergey Cherepanov 2ec42e5e1f yamux fix test race 2023-06-06 18:50:20 +02:00
Sergey Cherepanov 5090006e2d fix handshake race 2023-06-06 18:43:46 +02:00
Sergey Cherepanov 156f3387eb ref: use peerId instead libp2p sec connection + quic ready interfaces 2023-06-06 18:36:09 +02:00
Sergey Cherepanov 2d851d4cb9 Merge pull request #13 from anyproto/dependabot/go_modules/github.com/libp2p/go-libp2p-0.27.5
Bump github.com/libp2p/go-libp2p from 0.27.3 to 0.27.5
2023-06-06 12:21:56 +02:00
Sergey Cherepanov 8fdb98f14d Merge pull request #14 from anyproto/dependabot/go_modules/github.com/stretchr/testify-1.8.4
Bump github.com/stretchr/testify from 1.8.3 to 1.8.4
2023-06-05 21:35:40 +02:00
Sergey Cherepanov 0b4f08fbef remove stream multiqueue 2023-06-05 21:34:23 +02:00
Sergey Cherepanov af9d71d16e peer subConn gc 2023-06-05 21:23:41 +02:00
Sergey Cherepanov 9d4945c733 fix 2023-06-05 20:39:18 +02:00
Sergey Cherepanov 0c0a501aad peer outgoing proto handshake + test multiconn + streampool tests 2023-06-05 20:39:09 +02:00
Sergey Cherepanov 96768adaae switch coordinator to new peer api 2023-06-02 10:39:48 +02:00
Sergey Cherepanov e9f23e2dd9 peer.DoDrpc method 2023-06-02 10:39:24 +02:00
Sergey Cherepanov 1206071dd6 fix pool test 2023-06-02 10:34:49 +02:00
Sergey Cherepanov 41a85f7987 merge 2023-05-31 20:27:38 +02:00
Sergey Cherepanov fb007211f0 simplify drpc server + peer accept loop 2023-05-31 20:24:07 +02:00
Sergey Cherepanov 00c582e157 use net.Conn for a proto handshake 2023-05-31 19:24:23 +02:00
Sergey Cherepanov c43ac9eb84 handshake proto + common handshake fixes 2023-05-31 16:22:49 +02:00
Sergey Cherepanov 467536ac97 Merge pull request #11 from anyproto/dependabot/go_modules/github.com/ipfs/go-ipfs-chunker-0.0.6
Bump github.com/ipfs/go-ipfs-chunker from 0.0.5 to 0.0.6
2023-05-30 13:59:26 +02:00
Sergey Cherepanov 92f6a07d85 Merge pull request #12 from anyproto/dependabot/go_modules/github.com/ipfs/go-unixfs-0.4.6
Bump github.com/ipfs/go-unixfs from 0.4.5 to 0.4.6
2023-05-30 13:57:27 +02:00
Sergey Cherepanov fc53eaf9e5 Merge pull request #10 from anyproto/dependabot/go_modules/github.com/ipfs/go-ipfs-blockstore-1.3.1
Bump github.com/ipfs/go-ipfs-blockstore from 1.3.0 to 1.3.1
2023-05-30 13:57:08 +02:00
Sergey Cherepanov 1109ce8da1 Merge pull request #9 from anyproto/dependabot/go_modules/github.com/ipfs/go-blockservice-0.5.2
Bump github.com/ipfs/go-blockservice from 0.5.1 to 0.5.2
2023-05-30 13:56:58 +02:00
Sergey Cherepanov 24b0cafb7f Merge pull request #8 from anyproto/dependabot/go_modules/github.com/multiformats/go-multihash-0.2.2
Bump github.com/multiformats/go-multihash from 0.2.1 to 0.2.2
2023-05-30 13:56:48 +02:00
Sergey Cherepanov 553ed3a64b peer drpc conn pool 2023-05-29 17:56:44 +02:00
Sergey Cherepanov a898c6fc9c pool.AddPeer close previous peer 2023-05-29 16:33:33 +02:00
Sergey Cherepanov 12a7dfe05a Merge branch 'main' of github.com:anyproto/any-sync into yamux 2023-05-26 20:42:06 +02:00
Sergey Cherepanov fa02cfd830 mod tidy 2023-05-26 20:40:50 +02:00
Sergey Cherepanov 7958b43da6 peer service 2023-05-26 20:06:22 +02:00
Sergey Cherepanov bc2049ccbc wip: yamux transport + pool rewrite 2023-05-26 19:18:51 +02:00
Sergey Cherepanov f8c79c33bc update go.mod 2023-05-23 18:00:04 +02:00
Sergey Cherepanov 453aa7b769 update go mod 2023-05-23 15:43:33 +02:00
Sergey Cherepanov 24395ec7bf refactor handshake err 2023-05-22 19:17:20 +02:00
Sergey Cherepanov d8ed9f9307 fix HandshakeError 2023-05-22 18:00:30 +02:00
Sergey Cherepanov d04e55bc9c propagate handshake error + NetworkCompatibilityStatus method 2023-05-22 17:57:00 +02:00
Sergey Cherepanov 698507d363 make credentials with version, fix test 2023-05-22 15:31:55 +02:00
Sergey Cherepanov f5bb73a3e7 handshake proto version 2023-05-22 13:51:13 +02:00
Sergey Cherepanov a0633c39ec fix test 2023-05-19 22:21:12 +02:00
Sergey Cherepanov 3d2005833b remove debug 2023-05-19 22:18:39 +02:00
Sergey Cherepanov 8c84ab9b31 write app version to rpc log 2023-05-18 13:35:49 +02:00