{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/KestrelHttpServer/issues/1254","repository_url":"https://api.github.com/repos/aspnet/KestrelHttpServer","labels_url":"https://api.github.com/repos/aspnet/KestrelHttpServer/issues/1254/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/KestrelHttpServer/issues/1254/comments","events_url":"https://api.github.com/repos/aspnet/KestrelHttpServer/issues/1254/events","html_url":"https://github.com/aspnet/KestrelHttpServer/issues/1254","id":194617019,"number":1254,"title":"ECANCELED operation canceled, received after request completed","user":{"login":"mateanticevic","id":7413632,"avatar_url":"https://avatars.githubusercontent.com/u/7413632?v=3","gravatar_id":"","url":"https://api.github.com/users/mateanticevic","html_url":"https://github.com/mateanticevic","followers_url":"https://api.github.com/users/mateanticevic/followers","following_url":"https://api.github.com/users/mateanticevic/following{/other_user}","gists_url":"https://api.github.com/users/mateanticevic/gists{/gist_id}","starred_url":"https://api.github.com/users/mateanticevic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateanticevic/subscriptions","organizations_url":"https://api.github.com/users/mateanticevic/orgs","repos_url":"https://api.github.com/users/mateanticevic/repos","events_url":"https://api.github.com/users/mateanticevic/events{/privacy}","received_events_url":"https://api.github.com/users/mateanticevic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-09T15:01:52Z","updated_at":"2016-12-09T18:59:03Z","closed_at":"2016-12-09T18:59:02Z","body":"I was trying to test the cancellation token functionality.\r\n\r\n```\r\n        public async Task<string> Get(CancellationToken ct = default(CancellationToken))\r\n        {\r\n            await Task.Delay(5000);\r\n\r\n            return \"ok\";\r\n        }\r\n```\r\n\r\nScenario:\r\n\r\n- Send HTTP GET request\r\n- Abort\r\n- Inspect CancellationToken at \"return ok\" break point\r\n\r\nResult:\r\n\r\n- IsCancellationRequested = false\r\n- CanBeCanceled = true\r\n\r\nConsole lists the abort event last, after the HTTP request has finished.\r\n\r\nTried to run the same scenario using WebListener and the IsCancellationRequested was true, as expected."},"comment":{"url":"https://api.github.com/repos/aspnet/KestrelHttpServer/issues/comments/266093110","html_url":"https://github.com/aspnet/KestrelHttpServer/issues/1254#issuecomment-266093110","issue_url":"https://api.github.com/repos/aspnet/KestrelHttpServer/issues/1254","id":266093110,"user":{"login":"mateanticevic","id":7413632,"avatar_url":"https://avatars.githubusercontent.com/u/7413632?v=3","gravatar_id":"","url":"https://api.github.com/users/mateanticevic","html_url":"https://github.com/mateanticevic","followers_url":"https://api.github.com/users/mateanticevic/followers","following_url":"https://api.github.com/users/mateanticevic/following{/other_user}","gists_url":"https://api.github.com/users/mateanticevic/gists{/gist_id}","starred_url":"https://api.github.com/users/mateanticevic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateanticevic/subscriptions","organizations_url":"https://api.github.com/users/mateanticevic/orgs","repos_url":"https://api.github.com/users/mateanticevic/repos","events_url":"https://api.github.com/users/mateanticevic/events{/privacy}","received_events_url":"https://api.github.com/users/mateanticevic/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T18:59:02Z","updated_at":"2016-12-09T18:59:02Z","body":"Obrigado Cesar 👍 "}}
{"actor":{"display_login":"mateanticevic"}}