Pylons / waitress

Waitress - A WSGI server for Python 3
https://docs.pylonsproject.org/projects/waitress/en/latest/
Other
1.45k stars 175 forks source link

Close old buffer when overflowing in OverflowableBuffer #358

Closed digitalresistor closed 2 years ago

digitalresistor commented 2 years ago

When switching from a BytesIO to a file backed buffer, we were not closing the old buffer after we had copied its contents. With this change when we switch from a small buffer to a larger buffer or vice-versa we will now attempt to close the old buffer.

Closes: #357

fschulze commented 2 years ago

memory usage has been stable the past 20 days since I restarted with the fix