Commit Graph

17 Commits

Author SHA1 Message Date
Marco Munizaga 1c8eaabfd3
transport.Listener,quic: Support multiple QUIC versions with the same Listener. Only return a single multiaddr per listener. (#1923)
* Revert "transport.Listener  returns a list of multiaddrs"

This reverts commit 8962b2ae33.

* Support multiple QUIC versions on the same listener

* No long running accept loop

* Don't use a goroutine

* PR comments
2022-12-01 14:06:13 -08:00
Marco Munizaga 0b4867c117
feat: quic,webtransport: enable both quic-draft29 and quic-v1 addrs on quic. only quic-v1 on webtransport (#1881)
* transport.Listener  returns a list of multiaddrs

* Support both QUIC versions in QUIC transport

* Support only QUIC v1 in webtransport

* Update dialMatcher

* Update tests

* Only use draft 29 when dialing if the server is a draft 29 server

* Removes QUIC draft 29 addrs if we have a QUIC v1 addr

* Lint fix

* Add changes to deterministic certhashes after rebase

* Update p2p/transport/quic/options.go

Co-authored-by: Marten Seemann <martenseemann@gmail.com>

* Update p2p/transport/quic/listener.go

Co-authored-by: Marten Seemann <martenseemann@gmail.com>

* Update p2p/transport/quic/quic_multiaddr.go

Co-authored-by: Marten Seemann <martenseemann@gmail.com>

* Stylize QUIC correctly

* Update doc around ListenClose

* Preallocate a bit extra to avoid paying for an allocation later

* Keep a list of multiaddrs, then join

* PR nits

* Close transport or listener just once

* Update go-multiaddr

Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2022-11-17 10:01:19 -08:00
Marten Seemann 4623690009 switch from github.com/libp2p/go-libp2p-core to core 2022-08-17 17:13:02 +03:00
web3-bot eff72c4afa
sync: update CI config files (#1678)
* bump go.mod to Go 1.18 and run go fix

* bump go.mod to Go 1.18 and run go fix

* bump go.mod to Go 1.18 and run go fix

* bump go.mod to Go 1.18 and run go fix

* run gofmt -s

* update .github/workflows/go-test.yml

* update .github/workflows/go-check.yml

* stop using the deprecated io/ioutil package

Co-authored-by: web3-bot <web3-bot@users.noreply.github.com>
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2022-08-17 01:05:51 -07:00
Marco Munizaga b5289f13bb
tcp: limit the number of connections in tcp suite test on non-linux hosts (#1507)
* Only run the 50 connection test on linux

* Only one stress test on linux instead of both
2022-05-18 13:44:50 -07:00
Marten Seemann c130e6e96c don't continue on read / write error in stream suite (#59) 2022-04-26 06:24:18 -07:00
Marten Seemann 4a572e7eb4 remove debug logging from stream suite 2022-04-25 15:48:56 +01:00
Marten Seemann 3bd94ff7cb run go generate on CI 2022-01-17 11:46:11 +04:00
Marten Seemann f3dcaf7506 fix closing of dialed connections 2021-07-25 10:00:08 +02:00
Marten Seemann ea4a94069b fix deadlock in the transport's serve function
We don't close the connection before the echo hasn't returned, but echo won't
return before AcceptStream has returned an error, which only happens when the
connection is closed.
2021-07-24 22:15:23 +02:00
Steven Allen 75a6c48ffc fix: cleanup transport suite 2021-07-22 18:55:44 -07:00
Masih H. Derkani 6ebf948a1a Address `go vet` and `saticcheck` issues
Run `go mod tidy`

Resolve staticcheck issues:
- SA2002 `t.Fatal`  must be called in the same goroutine as the test
- U1000 unused struct
- ST1005 error string should not be capitalized

The `go vet` issues were the same as the ones reported by `saticcheck`.

Relates to:
- https://github.com/orgs/ipfs/projects/12#card-58209321
2021-07-19 15:33:43 +01:00
Dennis Trautwein d1d34d8802 Defer closing stream for reading 2021-05-01 18:23:16 +02:00
Marten Seemann 59f8133627 pass contexts to OpenStream in tests 2020-12-19 09:47:55 +07:00
Jorropo c18bd50d82 Allow custom SubtestStress. (#7)
SubtestStress is exposed but it was not possible to build a working opt parameters.
2019-10-29 11:38:35 +00:00
Raúl Kripalani 2857d54b80 SubtestPingPong: ensure connections are closed.
https://github.com/libp2p/go-libp2p-transport/pull/51
2019-05-23 18:45:35 +01:00
Raúl Kripalani aacc91fe0c initial commit.
Consolidate test utilities, harnesses and suites (#1)
2019-05-22 18:28:04 +01:00