Skip to content

Edge future wait with timeout risks memory-leaking #347

@iNecas

Description

@iNecas

In the wait_until_complete, we push the thread into @Waiters stack. The problem is, we don't remove that from the stack and we keep pushing it there. Therefore, if you do something like this:

f = Concurrent.future
while true
  f.wait(0.001)
end

While it's needed to have long-running futures and perioadic checks with timeouts to reproduce, we should still be more cautious about this

Metadata

Metadata

Assignees

Labels

enhancementAdding features, adding tests, improving documentation.questionAn user question, does not change the library.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions