1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-08-08 09:42:06 +03:00

Add a flag to notify user on new streams explicitly

Summary:
Current behavior is to create streams "lazily", that is pre-allocate stream ids that are lower than the stream id received in stream frame, even though we have not seen the lower streams yet. The `onNew(Bi|Uni)directionalStream()` callbacks are also raised implicitly, that is on lower stream ids pre-allocation, instead of when we actually get a stream frame with those lower ids.

With the new flag the callbacks will be raised to the user on actual arrival of the frame with the stream id on the wire.

Reviewed By: mjoras

Differential Revision: D36465978

fbshipit-source-id: 91faaadaad106a2bf62348c8fe8f00b3d7c61c2c
This commit is contained in:
Konstantin Tsoy
2022-05-19 20:01:28 -07:00
committed by Facebook GitHub Bot
parent e612a31218
commit e66b3b25cb
5 changed files with 299 additions and 187 deletions

File diff suppressed because it is too large Load Diff