mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-04 21:29:21 +00:00
Release the scgi task buffer on close
clear() keeps the capacity, and the task is pooled until exit.
This commit is contained in:
@@ -93,7 +93,8 @@ SCgiTask::close() {
|
||||
// The callbacks are guaranteed to be finished/canceled at this point.
|
||||
auto lock = std::lock_guard<std::mutex>(m_result_mutex);
|
||||
|
||||
m_buffer.clear();
|
||||
// clear() would keep the capacity, and the task is pooled for the lifetime of the process.
|
||||
std::vector<char>().swap(m_buffer);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user