Commit Graph

3898 Commits

Author SHA1 Message Date
Marco Munizaga 3eb35223a7
Pass endpoint information to resource manager's OpenConnection (#1633)
* Move mux testsuite to here

* Update OpenConnection call sites to pass in endpoint information

* Go mod update

* Use proper versions for deps
2022-07-01 15:43:42 -07:00
Marco Munizaga 452ddfbb76
Add canonical peer status logs (#1624)
* Add canonical peer status logs

* Move logs to swarm

* Remove quic log

* Update deps
2022-07-01 12:52:39 -07:00
Marten Seemann 196acf287e
Merge pull request #1626 from libp2p/merge-circuit-v1
move go-libp2p-circuit here
2022-07-01 11:47:22 -07:00
Marten Seemann 41cffa159e
swarm: fix logging of accepted connections (#1629) 2022-07-01 11:39:03 -07:00
Marten Seemann 217fa83f10 skip all circuit v1 tests 2022-07-01 20:11:45 +02:00
Steven Allen a39f547b66
fix: deny connections to peers in the right place (#1627)
The previous location would prevent explicit calls to `Connect`, but not
implicit connections on `NewStream`. Given that the host calls `Connect`
before calling `NewStream`, it's unclear whether or not this would
likely be triggered by user code, but we still need to fix it.
2022-07-01 11:05:53 -07:00
Marten Seemann 786a4d2649 switch from github.com/libp2p/go-libp2p-circuit to p2p/protocol/internal/circuitv1-deprecated 2022-07-01 17:45:15 +02:00
Marten Seemann 48d4857b21 merge go-libp2p-circuit here 2022-07-01 17:38:26 +02:00
Marten Seemann 95e9ff7568
ping: fix flaky test (#1617) 2022-06-30 11:33:47 -07:00
Marco Munizaga 17464c3bda
chore: update github.com/multiformats/go-multistream to v0.3.3 (#1621) 2022-06-28 12:20:08 -07:00
Marten Seemann d8c4f163a3
chore: use the new multiaddr.Contains function (#1618) 2022-06-28 01:35:22 -07:00
Marten Seemann 1fd5029c8b
chore: stop using the deprecated mux.MuxedConn (#1614) 2022-06-27 10:16:40 -07:00
Marco Munizaga 8cb44cbd4e
logging: Add canonical log for misbehaving peers (#1600)
* Add misbehaving log

* Add logging when security handshake or muxer fails

* Update go-libp2p-core

* Log at the security handshake level

* Remove misbehaving log from setup muxer
2022-06-26 03:37:57 -07:00
Marten Seemann 650c35a8b6
use multiaddr ipcidr to parse multiaddr filters (#1606) 2022-06-24 00:47:03 -07:00
Marten Seemann 56cc37ad46
tcp: unexport TcpTransport.Upgrader (#1596) 2022-06-23 10:37:07 -07:00
Marco Munizaga 86aad883c8
chore: update github.com/multiformats/go-multistream to v0.3.2 (#1610) 2022-06-23 12:51:41 +02:00
Christian Stewart 3cf611ad8c
muxer: expose func to create MuxedConn from backing Conn (#1609)
Expose a function to create a MuxedConn from the base type: if a user has
a *mp.Multiplex or a *yamux.Session, they should be able to construct the libp2p
wrapper without going through the Transport interfaces.

Signed-off-by: Christian Stewart <christian@paral.in>
2022-06-22 13:55:12 -07:00
Marten Seemann 707100a521
remove legacy mDNS implementation (#1192) 2022-06-20 11:02:14 -07:00
Adin Schmahmann 4dd3b0758f feat: allow dialing wss peers using DNS multiaddrs 2022-06-20 11:45:35 -04:00
Wiktor Jurkiewicz 884028550c
fix natManager to close natManager.nat (#1468)
* rename natManager.natnatmu to follow the standard

* fix natManager to close natManager.nat

* natmgr: move close to defer in background
2022-06-14 17:03:33 -07:00
millken 5a06093c10
Expose DefaultPerPeerRateLimit as var (#1580)
Expose DefaultPerPeerRateLimit as var
2022-06-14 16:53:25 -07:00
Julien Muret d7ba37217c
swarm: add ListenClose (#1586)
* feat(swarm): add ListenClose

* fix(swarm): fix ListenClose behavior

* refactor(swarm): move the listener's closing log
2022-06-05 12:59:32 -07:00
Marco Munizaga e6379f54a8
identify: Fix flaky tests (#1555)
* Fix flaky timing dependent tests

* Update go-libp2p-peerstore dependency

* Register notifiee synchronously

* Only a single connection

* Remove WaitForDisconnectNotification hack since notifs are now synchronous

* Add debug logging to identify tests

* Close chan once
2022-06-02 13:30:51 -07:00
Marco Munizaga 3517eae205
autonat: fix flaky TestAutoNATPrivate (#1581)
* Use expectEvent and scale duration for CI

* Use 3 seconds
2022-06-02 02:44:02 -07:00
Marco Munizaga b492f6fb89
pstoremanager: fix test timeout (#1588)
* Wait for event to be sent before we close

* Add timeout on channel
2022-06-02 02:42:35 -07:00
Marten Seemann e732bda3fa
swarm: send notifications synchronously (#1562) 2022-06-01 09:41:54 -07:00
Marten Seemann fd697bb605
basichost: fix flaky TestSignedPeerRecordWithNoListenAddrs (#1559) 2022-06-01 04:10:41 -07:00
Marco Munizaga 07a4520005
identify: fix flaky TestIdentifyDeltaOnProtocolChange (again) (#1582)
We can get events happening as soon as we connect and if subscribe after
we started the connection, then we could miss these events.
2022-06-01 01:45:48 -07:00
Marten Seemann 7f18c993c4
Merge pull request #1560 from libp2p/tls-invalid-certs-error
tls: fix flaky TestInvalidCerts on Windows
2022-06-01 10:06:29 +02:00
Steven Allen a7813145e9
Merge pull request #1583 from libp2p/steb/log-error
chore: log autorelay start failure error
2022-05-31 18:52:44 -07:00
Steven Allen e6a24bd40d chore: log autorelay start failure error
I got this error from go-ipfs (probably because I put my laptop to
sleep?) but I couldn't get any details.
2022-05-31 18:03:04 -07:00
Marco Munizaga 706d13becd
Add sanity check assertion (#1570) 2022-05-31 16:03:33 -07:00
Marten Seemann ce5ff06a6f tls: catch cases where Windows doesn't deliver the TLS error in tests 2022-05-28 22:25:17 +02:00
Marten Seemann dacdb5fc0f tls: set TCP linger to 0 on tests on Windows
Otherwise we can't reliably establish a few TCP connections in short
succession.
2022-05-28 22:25:17 +02:00
Marten Seemann 2f109aea68 tls: fix error reporting in TestInvalidCerts 2022-05-28 22:25:17 +02:00
Marten Seemann 5c297a8700
swarm: speed up the TestDialWorkerLoopConcurrentFailureStress test (#1573) 2022-05-28 03:39:56 -07:00
Marten Seemann 058284b630
chore: update examples to go-libp2p v0.20.0 (#1557) 2022-05-28 02:24:51 -07:00
Marco Munizaga c7928312d6
Wait a couple seconds for ID event (#1568) 2022-05-27 12:20:53 -07:00
Marten Seemann 0fcc5d26ef
remove workspace and packages section from README (#1563)
* remove note about the libp2p workspace

* remove repo table from README
2022-05-27 02:59:16 -07:00
Jorropo 449bafb2a3
fix: mkreleaselog exclude autogenerated files (#1567) 2022-05-26 08:32:15 -07:00
Marten Seemann 193990f76d
move resource manager integration tests to p2p/test/ (#1561) 2022-05-26 04:35:32 -07:00
Marten Seemann f3195e96b7
swarm: only dial a single transport in TestDialWorkerLoopBasic (#1526) 2022-05-25 12:53:14 -07:00
Marten Seemann 6c56eeab7f
release v0.20.0 (#1530) 2022-05-25 07:26:59 -07:00
Marten Seemann 8d2e54e163
update go-libp2p-core, remove stream methods from network.Notifiee (#1521) 2022-05-25 06:51:37 -07:00
Marten Seemann 14b1d29f86
autonat: return E_DIAL_REFUSED when skipping dial (#1527)
Co-authored-by: elenaf9 <elena.frank@protonmail.com>
2022-05-25 06:31:12 -07:00
Marten Seemann 336d093b97
chore: update deps (#1522) 2022-05-25 02:59:30 -07:00
Marten Seemann 2253bd1d97
Merge pull request #1511 from libp2p/merge-muxer-multistream
move go-stream-muxer-multistream here
2022-05-24 15:45:09 +02:00
Marten Seemann 7451723713
remove dependency on go-libp2p-testing/suites/sec (#1510) 2022-05-24 06:44:53 -07:00
Marco Munizaga bedce2290d
backoff: fix flaky tests in backoff cache (#1516)
* Use mock clock to test time based properties of backoff cache

* Use mockclock library
2022-05-24 05:51:18 -07:00
Marten Seemann 0ab782adb8
chore: update quic-go to v0.27.1 (#1520) 2022-05-24 05:46:44 -07:00