-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* ⚡️[RUMF-1111] limit the number of bytes read from the response * [RUMF-1111] add support for Edge 18 and lower * 👌 use a more explicit `truncateResponseStream` function * 👌 rename partialBuffers to chunks * 👌 no need to slice chunk * 👌 encapsulate the "exceeded limit" logic in `readBytes` * 👌 rephrase comment a bit * 👌 add a test on cancel returning a rejected promise * 👌 exclicitly states that it is an optimization Co-authored-by: Bastien Caudan <bastien.caudan@datadoghq.com> * 👌 add a E2E test * move the limit to logs * 👌 make sure the amount of bytes sent is close to the limit * 👌 remove assertion with server-side limit * 👌 move comment * ✅ increase limit The limit might not be enough in BS. It might depend on the network latency and cause flakiness... we'll see Co-authored-by: Bastien Caudan <bastien.caudan@datadoghq.com>
- Loading branch information
1 parent
4ca0ed8
commit 486faa2
Showing
9 changed files
with
339 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.