{"action":"created","issue":{"url":"https://api.github.com/repos/yesodweb/yesod/issues/1083","labels_url":"https://api.github.com/repos/yesodweb/yesod/issues/1083/labels{/name}","comments_url":"https://api.github.com/repos/yesodweb/yesod/issues/1083/comments","events_url":"https://api.github.com/repos/yesodweb/yesod/issues/1083/events","html_url":"https://github.com/yesodweb/yesod/pull/1083","id":110785473,"number":1083,"title":"Thread leak when calling neverExpires ","user":{"login":"DaveCTurner","id":5058284,"avatar_url":"https://avatars.githubusercontent.com/u/5058284?v=3","gravatar_id":"","url":"https://api.github.com/users/DaveCTurner","html_url":"https://github.com/DaveCTurner","followers_url":"https://api.github.com/users/DaveCTurner/followers","following_url":"https://api.github.com/users/DaveCTurner/following{/other_user}","gists_url":"https://api.github.com/users/DaveCTurner/gists{/gist_id}","starred_url":"https://api.github.com/users/DaveCTurner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaveCTurner/subscriptions","organizations_url":"https://api.github.com/users/DaveCTurner/orgs","repos_url":"https://api.github.com/users/DaveCTurner/repos","events_url":"https://api.github.com/users/DaveCTurner/events{/privacy}","received_events_url":"https://api.github.com/users/DaveCTurner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-10T10:11:02Z","updated_at":"2015-10-10T20:15:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yesodweb/yesod/pulls/1083","html_url":"https://github.com/yesodweb/yesod/pull/1083","diff_url":"https://github.com/yesodweb/yesod/pull/1083.diff","patch_url":"https://github.com/yesodweb/yesod/pull/1083.patch"},"body":"My commit (42f098ff64d5a9c8f8cccac7ebc940ecdf45dfc4) causes `neverExpires` to leak threads rather badly. See https://groups.google.com/forum/#!topic/yesodweb/TJgI1LKtMgM for graphs.\r\n\r\nI clearly misunderstood where I'd added the call to `mkAutoUpdate` - I intended it to be when the application was being set up but now I look at it again I see that it's calling it in every handler.\r\n\r\nI can't promise I will be able to fix this for a few days, but a fix is on its way.\r\n\r\nDeepest apologies!"},"comment":{"url":"https://api.github.com/repos/yesodweb/yesod/issues/comments/147122383","html_url":"https://github.com/yesodweb/yesod/pull/1083#issuecomment-147122383","issue_url":"https://api.github.com/repos/yesodweb/yesod/issues/1083","id":147122383,"user":{"login":"gregwebs","id":1183,"avatar_url":"https://avatars.githubusercontent.com/u/1183?v=3","gravatar_id":"","url":"https://api.github.com/users/gregwebs","html_url":"https://github.com/gregwebs","followers_url":"https://api.github.com/users/gregwebs/followers","following_url":"https://api.github.com/users/gregwebs/following{/other_user}","gists_url":"https://api.github.com/users/gregwebs/gists{/gist_id}","starred_url":"https://api.github.com/users/gregwebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregwebs/subscriptions","organizations_url":"https://api.github.com/users/gregwebs/orgs","repos_url":"https://api.github.com/users/gregwebs/repos","events_url":"https://api.github.com/users/gregwebs/events{/privacy}","received_events_url":"https://api.github.com/users/gregwebs/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T20:15:48Z","updated_at":"2015-10-10T20:15:48Z","body":"I know the value is cached, but I was trying to get at an approach where there is never a need to even start the update thread or do any work if you don't call `neverExpires` (I work on a large application that does not). That would be my preference."}}