Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Fix a memory leak in QueueHandler #134

Merged
merged 1 commit into from Apr 21, 2018
Merged

Conversation

MrMage
Copy link
Contributor

@MrMage MrMage commented Apr 21, 2018

QueueHandler sometimes retains the context it is executing on in waitingCtx. That context's handler is the QueueHandler itself, leading to a retain cycle. We break it by making waitingCtx a weak reference.

`QueueHandler` sometimes retains the context it is executing on in `waitingCtx`. That context's handler is the `QueueHandler` itself, leading to a retain cycle. We break it by making `waitingCtx` a weak reference.
@tanner0101 tanner0101 added the bug label Apr 21, 2018
@tanner0101 tanner0101 self-assigned this Apr 21, 2018
@tanner0101
Copy link
Member

Thanks!

@tanner0101 tanner0101 merged commit 89d4701 into master Apr 21, 2018
@tanner0101 tanner0101 added this to the 3.1.3 milestone Apr 21, 2018
@tanner0101 tanner0101 deleted the fix-leak-queuehandler branch April 21, 2018 17:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
No open projects
Vapor 3
  
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

2 participants