{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/HttpClientFactory/issues/140","repository_url":"https://api.github.com/repos/aspnet/HttpClientFactory","labels_url":"https://api.github.com/repos/aspnet/HttpClientFactory/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/HttpClientFactory/issues/140/comments","events_url":"https://api.github.com/repos/aspnet/HttpClientFactory/issues/140/events","html_url":"https://github.com/aspnet/HttpClientFactory/issues/140","id":338108431,"node_id":"MDU6SXNzdWUzMzgxMDg0MzE=","number":140,"title":"SynchronizationLockException in DefaultHttpClientFactory.CleanupTimer_Tick","user":{"login":"zone117x","id":1447546,"node_id":"MDQ6VXNlcjE0NDc1NDY=","avatar_url":"https://avatars1.githubusercontent.com/u/1447546?v=4","gravatar_id":"","url":"https://api.github.com/users/zone117x","html_url":"https://github.com/zone117x","followers_url":"https://api.github.com/users/zone117x/followers","following_url":"https://api.github.com/users/zone117x/following{/other_user}","gists_url":"https://api.github.com/users/zone117x/gists{/gist_id}","starred_url":"https://api.github.com/users/zone117x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zone117x/subscriptions","organizations_url":"https://api.github.com/users/zone117x/orgs","repos_url":"https://api.github.com/users/zone117x/repos","events_url":"https://api.github.com/users/zone117x/events{/privacy}","received_events_url":"https://api.github.com/users/zone117x/received_events","type":"User","site_admin":false},"labels":[{"id":708938847,"node_id":"MDU6TGFiZWw3MDg5Mzg4NDc=","url":"https://api.github.com/repos/aspnet/HttpClientFactory/labels/2%20-%20Working","name":"2 - Working","color":"cccccc","default":false},{"id":708937998,"node_id":"MDU6TGFiZWw3MDg5Mzc5OTg=","url":"https://api.github.com/repos/aspnet/HttpClientFactory/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/aspnet/HttpClientFactory/milestones/10","html_url":"https://github.com/aspnet/HttpClientFactory/milestone/10","labels_url":"https://api.github.com/repos/aspnet/HttpClientFactory/milestones/10/labels","id":3545305,"node_id":"MDk6TWlsZXN0b25lMzU0NTMwNQ==","number":10,"title":"2.2.0-preview2","description":null,"creator":{"login":"glennc","id":234688,"node_id":"MDQ6VXNlcjIzNDY4OA==","avatar_url":"https://avatars3.githubusercontent.com/u/234688?v=4","gravatar_id":"","url":"https://api.github.com/users/glennc","html_url":"https://github.com/glennc","followers_url":"https://api.github.com/users/glennc/followers","following_url":"https://api.github.com/users/glennc/following{/other_user}","gists_url":"https://api.github.com/users/glennc/gists{/gist_id}","starred_url":"https://api.github.com/users/glennc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennc/subscriptions","organizations_url":"https://api.github.com/users/glennc/orgs","repos_url":"https://api.github.com/users/glennc/repos","events_url":"https://api.github.com/users/glennc/events{/privacy}","received_events_url":"https://api.github.com/users/glennc/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":2,"state":"open","created_at":"2018-08-03T17:55:40Z","updated_at":"2018-08-15T00:02:35Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-07-04T02:17:46Z","updated_at":"2018-08-15T00:02:35Z","closed_at":"2018-08-15T00:02:35Z","author_association":"NONE","body":"Came across a threading bug when running a long test suite on a slow CI server. Using xuint, netcoreapp2.1, and ubuntu 16.04 x64.\r\n\r\n```\r\n[18:36:59]\t[test] The active test run was aborted. Reason: Unhandled Exception: Unhandled Exception: \r\n[18:36:59]\t[test] Unhandled Exception: Unhandled Exception: System.Threading.SynchronizationLockException: Object synchronization method was called from an unsynchronized block of code.\r\n[18:36:59]\t[test]    at System.Threading.Monitor.Exit(Object obj)\r\n[18:36:59]\t[test]    at Microsoft.Extensions.Http.DefaultHttpClientFactory.CleanupTimer_Tick(Object state)\r\n[18:36:59]\t[test]    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n[18:36:59]\t[test] --- End of stack trace from previous location where exception was thrown ---\r\n[18:36:59]\t[test]    at System.Threading.TimerQueueTimer.CallCallback()\r\n[18:36:59]\t[test]    at System.Threading.TimerQueueTimer.Fire()\r\n[18:36:59]\t[test]    at System.Threading.TimerQueue.FireNextTimers()System.Threading.SynchronizationLockException: Object synchronization method was called from an unsynchronized block of code.\r\n[18:36:59]\t[test]    at System.Threading.Monitor.Exit(Object obj)\r\n[18:36:59]\t[test]    at Microsoft.Extensions.Http.DefaultHttpClientFactory.CleanupTimer_Tick(Object state)\r\n[18:36:59]\t[test]    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n[18:36:59]\t[test] --- End of stack trace from previous location where exception was thrown ---\r\n[18:36:59]\t[test]    at System.Threading.TimerQueueTimer.CallCallback()\r\n[18:36:59]\t[test]    at System.Threading.TimerQueueTimer.Fire()\r\n[18:36:59]\t[test]    at System.Threading.TimerQueue.FireNextTimers()\r\n[18:36:59]\t[test] System.Threading.SynchronizationLockException: Object synchronization method was called from an unsynchronized block of code.\r\n[18:36:59]\t[test]    at System.Threading.Monitor.Exit(Object obj)\r\n[18:36:59]\t[test]    at Microsoft.Extensions.Http.DefaultHttpClientFactory.CleanupTimer_Tick(Object state)\r\n[18:36:59]\t[test]    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n[18:36:59]\t[test] --- End of stack trace from previous location where exception was thrown ---\r\n[18:36:59]\t[test]    at System.Threading.TimerQueueTimer.CallCallback()\r\n[18:36:59]\t[test]    at System.Threading.TimerQueueTimer.Fire()\r\n[18:36:59]\t[test]    at System.Threading.TimerQueue.FireNextTimers()\r\n[18:36:59]\t[test] System.Threading.SynchronizationLockException: Object synchronization method was called from an unsynchronized block of code.\r\n[18:36:59]\t[test]    at System.Threading.Monitor.Exit(Object obj)\r\n[18:36:59]\t[test]    at Microsoft.Extensions.Http.DefaultHttpClientFactory.CleanupTimer_Tick(Object state)\r\n[18:36:59]\t[test]    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n[18:36:59]\t[test] --- End of stack trace from previous location where exception was thrown ---\r\n[18:36:59]\t[test]    at System.Threading.TimerQueueTimer.CallCallback()\r\n[18:36:59]\t[test]    at System.Threading.TimerQueueTimer.Fire()\r\n[18:36:59]\t[test]    at System.Threading.TimerQueue.FireNextTimers()\r\n[18:36:59]\t[test] \r\n[18:37:00]\t[test] Test Run Aborted.\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnet/HttpClientFactory/issues/comments/413053547","html_url":"https://github.com/aspnet/HttpClientFactory/issues/140#issuecomment-413053547","issue_url":"https://api.github.com/repos/aspnet/HttpClientFactory/issues/140","id":413053547,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzA1MzU0Nw==","user":{"login":"rynowak","id":1430011,"node_id":"MDQ6VXNlcjE0MzAwMTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1430011?v=4","gravatar_id":"","url":"https://api.github.com/users/rynowak","html_url":"https://github.com/rynowak","followers_url":"https://api.github.com/users/rynowak/followers","following_url":"https://api.github.com/users/rynowak/following{/other_user}","gists_url":"https://api.github.com/users/rynowak/gists{/gist_id}","starred_url":"https://api.github.com/users/rynowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rynowak/subscriptions","organizations_url":"https://api.github.com/users/rynowak/orgs","repos_url":"https://api.github.com/users/rynowak/repos","events_url":"https://api.github.com/users/rynowak/events{/privacy}","received_events_url":"https://api.github.com/users/rynowak/received_events","type":"User","site_admin":false},"created_at":"2018-08-15T00:02:35Z","updated_at":"2018-08-15T00:02:35Z","author_association":"MEMBER","body":"Fixed by #153  - the PR has the wrong issue reference "}}
{"actor":{"display_login":"rynowak"}}