dart-lang / sse

Dart Server Sent Events package
https://pub.dev/packages/sse
BSD 3-Clause "New" or "Revised" License
96 stars 24 forks source link

Buffer requests after a certain number of pending requests #49

Open grouma opened 3 years ago

grouma commented 3 years ago

Chrome limits the number of pending outgoing requests. Additional requests after this limit automatically fail. It'd be good package:sse kept track of these outgoing requests and instead buffered additional requests so that they do not automatically fail.

Related to https://github.com/flutter/devtools/issues/2950

grouma commented 3 years ago

See https://bugs.chromium.org/p/chromium/issues/detail?id=108055 for the threshold.