{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/662","repository_url":"https://api.github.com/repos/apple/swift-corelibs-foundation","labels_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/662/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/662/comments","events_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/662/events","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/662","id":180045355,"number":662,"title":"[SR-2798] Fix deadlock in URLSession.","user":{"login":"aleksgapp","id":4080935,"avatar_url":"https://avatars.githubusercontent.com/u/4080935?v=3","gravatar_id":"","url":"https://api.github.com/users/aleksgapp","html_url":"https://github.com/aleksgapp","followers_url":"https://api.github.com/users/aleksgapp/followers","following_url":"https://api.github.com/users/aleksgapp/following{/other_user}","gists_url":"https://api.github.com/users/aleksgapp/gists{/gist_id}","starred_url":"https://api.github.com/users/aleksgapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleksgapp/subscriptions","organizations_url":"https://api.github.com/users/aleksgapp/orgs","repos_url":"https://api.github.com/users/aleksgapp/repos","events_url":"https://api.github.com/users/aleksgapp/events{/privacy}","received_events_url":"https://api.github.com/users/aleksgapp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-29T13:12:16Z","updated_at":"2016-09-30T09:23:24Z","closed_at":"2016-09-30T09:20:24Z","pull_request":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/662","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/662","diff_url":"https://github.com/apple/swift-corelibs-foundation/pull/662.diff","patch_url":"https://github.com/apple/swift-corelibs-foundation/pull/662.patch"},"body":"The problem is in the current implementation of `finishTasksAndInvalidate`, if there're executing tasks in session - it will create a semaphore, that will block session work queue, but to release, it has to enter that queue again.\r\n\r\nResolves [SR-2798](https://bugs.swift.org/browse/SR-2798)."},"comment":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/comments/250699732","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/662#issuecomment-250699732","issue_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/662","id":250699732,"user":{"login":"pushkarnk","id":4761859,"avatar_url":"https://avatars.githubusercontent.com/u/4761859?v=3","gravatar_id":"","url":"https://api.github.com/users/pushkarnk","html_url":"https://github.com/pushkarnk","followers_url":"https://api.github.com/users/pushkarnk/followers","following_url":"https://api.github.com/users/pushkarnk/following{/other_user}","gists_url":"https://api.github.com/users/pushkarnk/gists{/gist_id}","starred_url":"https://api.github.com/users/pushkarnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushkarnk/subscriptions","organizations_url":"https://api.github.com/users/pushkarnk/orgs","repos_url":"https://api.github.com/users/pushkarnk/repos","events_url":"https://api.github.com/users/pushkarnk/events{/privacy}","received_events_url":"https://api.github.com/users/pushkarnk/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T09:23:24Z","updated_at":"2016-09-30T09:23:24Z","body":"I agree with the fix. "}}
{"actor":{"display_login":"pushkarnk"}}