ipfs / ipfs/in-web-browsers

Too many pending WebTransport sessions in Chromium

Open
#211 6 comments 1 reaction 0 assignees View on GitHub
env:browser kind/bug status/in-progress
Dominant language
No language data
Stars
357
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Ref. https://bugs.chromium.org/p/chromium/issues/detail?id=1473980

>
> ## What steps will reproduce the problem?
>
> 1. Visit ~https://helia-identify.on.fleek.co/~ https://identify.ipfs.network/
> 2. Open the console
> 3. Wait a minute or two
>
> ## What is the expected result?
>
> - No uncatchable WebTransport errors or warnings should appear in the console
> - :point_right: We should be able to detect when we have too many pending WebTransport sessions and close them
> - :point_right: We should be able to recover from this state and begin opening WebTransport sessions again
>
> ## What happens instead?
>
> A warning appears in the console: WebTransport session establishment failed. Too many pending WebTransport sessions (64)
>
> All subsequent attempts to open a WebTransport session on any server fail with "WebTransportError: Connection lost"

---

### Timeline

- 2024-Q2
- Prototyping the origin's hashmap as the first mitigation issue
- Implementation of strategy pattern, under a runtime flag
- https://chromium-review.googlesource.com/c/chromium/src/+/5577378
- https://chromium-review.googlesource.com/c/chromium/src/+/5587497
- Implementation of a MVP and asked Google engineers for an early review
- https://chromium-review.googlesource.com/c/chromium/src/+/5600351

cc @achingbrain @SgtPooki

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.