actix-web icon indicating copy to clipboard operation
actix-web copied to clipboard

actix-web-actors: take the internal buffer when yielding

Open asonix opened this issue 1 year ago • 0 comments

PR Type

Bug Fix i think

PR Checklist

  • [ ] Tests for the changes have been added / updated.
  • [ ] Documentation comments have been added / updated.
  • [x] A changelog entry has been made for the appropriate packages.
  • [x] Format code with the latest stable rustfmt.
  • [x] (Team) Label with affected crates and semver status.

Overview

This just takes the internal buffer when yielding in the websocket context future rather than splitting it. The result is that the internal buffer is not re-used between yields, but it also no longer grows perpetually

relates to https://github.com/actix/actix-web/issues/3367

asonix avatar May 18 '24 17:05 asonix