mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 03:48:23 +00:00
Previously we were opening the file handles, then putting them in a queue for upload. If that queue grows too large, we can hit a maximum open files limit. This commit opens the file handle 'just in time', so the maximum number of open handles is equal to the upload concurrency (20).