Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update t0 v0.33.1 #2

Draft
wants to merge 232 commits into
base: main
Choose a base branch
from
Draft

Update t0 v0.33.1 #2

wants to merge 232 commits into from

Conversation

gts2030
Copy link

@gts2030 gts2030 commented May 23, 2024

No description provided.

marten-seemann and others added 30 commits May 24, 2024 02:12
…(#2268)

This solves a deadlock when AddCertHashes is called before Listen.
It also means that we're initializing a certmanaer even if we're only using the
WebTransport transport for dialing and not for listening, but that's a fringe
use case anyway.
…ansport (#2268)" (#2273)

This reverts commit feda23995d660685f33f7ad5d2a6d5f4e1c81f6f.
* quic: prioritise listen connections for reuse

* add test for checking reuse in listen after dial

* rename globalDial to fallback

* improve naming. fix gc test

* reuse dial connections on listen requests for port 0

* Update p2p/transport/quicreuse/reuse.go

Co-authored-by: Marten Seemann <[email protected]>

* fix comment

* cleanup reuse logic

* fix scoping

---------

Co-authored-by: Marten Seemann <[email protected]>
* Revert "websocket: don't set a WSS multiaddr for accepted unencrypted conns (#2199)"

This reverts commit eeb685f.

* Revert "websocket: Don't limit message sizes in the websocket reader (#2193)"

This reverts commit 2fe6600ca492c44f53632bae916e2bc135fa1f42.

* Revert "websocket: Replace gorilla websocket transport with nhooyr websocket transport (#1982)"

* websocket: don't set a WSS multiaddr for accepted unencrypted conns
* Log unexpected listener errors

* Use errors.Is
* tests: add integration tests for gating of outgoing connections

* tests: integrate connection gating tests into the transport tests

* disable gating tests with race detector
* examples: fix flaky multipro TestMain

* better to synchronise
…2287)

* net/mock: mimic Swarm's event and notificaion behavior in MockNet

* go fmt
* metrics: update dashboards to support multiple instances

* update file permissions
* Remove duplicate `SetProtocol` call

* Don't log if transport ErrListenerClosed

* Close the conn scope in webtransport dial

* Mock resource scope span

* Add transport rcmgr integration test

* PR nits

* Fix flakiness

* Threadsafe way of waiting for all streams

* Expand comment
burdiyan and others added 29 commits May 24, 2024 02:19
This should be covered by the general project license.
* refactor: call NewStream from only one side

* Update examples/chat-with-mdns/main.go

Co-authored-by: Sukun <[email protected]>

* Update examples/chat-with-mdns/main.go

Co-authored-by: Sukun <[email protected]>

---------

Co-authored-by: Sukun <[email protected]>
* chore: update readme for example chat-with-mdns

* update old example code
* p2p/security: add transport independent benchmarks

* defaults: do TLS by default for encryption

Tls has much better throughput, the handshake benchmark is fairly noisy, there is no significant performance difference, however it does allocate more.

```
goos: linux
goarch: amd64
cpu: AMD Ryzen 5 3600 6-Core Processor
BenchmarkNoise/throughput/32KiB-12 24984	     46605 ns/op	 703.10 MB/s	      37 B/op	       2 allocs/op
BenchmarkNoise/throughput/1MiB-12   1134	   1459483 ns/op	 718.46 MB/s	     663 B/op	      34 allocs/op
BenchmarkNoise/handshakes-12        1302	   1054533 ns/op	   32691 B/op	     348 allocs/op
BenchmarkTls/throughput/32KiB-12   49006	     24309 ns/op	1347.99 MB/s	      50 B/op	       2 allocs/op
BenchmarkTls/throughput/1MiB-12     1747	    778498 ns/op	1346.92 MB/s	    1603 B/op	      64 allocs/op
BenchmarkTls/handshakes-12          1116           1045475 ns/op	  105257 B/op	    1478 allocs/op
```
* readme

* scope

* natmgr

* svc

---------

Co-authored-by: Sukun <[email protected]>
* chore: update go-multiaddr 0.12.2

* chore: fix too many require blocks in go.mod
* chore: testify lint fixes

* chore: revert t.error replacements

* chore: revert errNotWebSocketAddress

---------

Co-authored-by: Sukun <[email protected]>
* quic: upgrade to quic-go v0.41.0

* retain listener.Close behaviour of closing inqueue connections
* Bump quic-go dep

* Code changes for quic-go dep update

* Release v0.33.1

* Tidy go.mod in test-plans
@gts2030 gts2030 marked this pull request as draft May 23, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.