1. Add a new setting [here](https://searchfox.org/mozilla-central/rev/a8a00d67c6c7118f0b95cffa26740202c3b9e6f3/netwerk/protocol/http/Http2Session.h#161). 2. If `SETTINGS_WEBTRANSPORT_MAX_SESSIONS` is not greater than 0, close the connection. 3. Before creating a new session, we should check if it exceeded the limit.
Bug 1954532 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
[Starting point](https://searchfox.org/mozilla-central/rev/a8a00d67c6c7118f0b95cffa26740202c3b9e6f3/netwerk/protocol/http/Http2Session.cpp#1847) 1. Add a new setting [here](https://searchfox.org/mozilla-central/rev/a8a00d67c6c7118f0b95cffa26740202c3b9e6f3/netwerk/protocol/http/Http2Session.h#161). 2. If `SETTINGS_WEBTRANSPORT_MAX_SESSIONS` is not greater than 0, close the connection. 3. Before creating a new session, we should check if it exceeded the limit.