{"action":"created","comment":{"url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/comments/87506201","pull_request_review_id":8118089,"id":87506201,"diff_hunk":"@@ -18,6 +18,18 @@\n \n @implementation MPNetwork\n \n++ (NSURLSession *)sharedSession {\n+    static NSURLSession *sharedSession = nil;\n+    @synchronized(self) {\n+        if (sharedSession == nil) {\n+            NSURLSessionConfiguration *sessionConfig = [NSURLSessionConfiguration defaultSessionConfiguration];\n+            sessionConfig.timeoutIntervalForRequest = 5.0;","path":"Mixpanel/MPNetwork.m","position":9,"original_position":9,"commit_id":"5c83d90a86f5296b4197d88cf2f29eb7c39afd70","original_commit_id":"3f5677fec329619a7171717d5c7304b1977ce3e7","user":{"login":"yarneo","id":4066863,"avatar_url":"https://avatars.githubusercontent.com/u/4066863?v=3","gravatar_id":"","url":"https://api.github.com/users/yarneo","html_url":"https://github.com/yarneo","followers_url":"https://api.github.com/users/yarneo/followers","following_url":"https://api.github.com/users/yarneo/following{/other_user}","gists_url":"https://api.github.com/users/yarneo/gists{/gist_id}","starred_url":"https://api.github.com/users/yarneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarneo/subscriptions","organizations_url":"https://api.github.com/users/yarneo/orgs","repos_url":"https://api.github.com/users/yarneo/repos","events_url":"https://api.github.com/users/yarneo/events{/privacy}","received_events_url":"https://api.github.com/users/yarneo/received_events","type":"User","site_admin":false},"body":"defaultSessionConfiguration is a factory method that creates a copy of the default configuration and doesn't alter it","created_at":"2016-11-10T23:05:23Z","updated_at":"2016-11-10T23:05:23Z","html_url":"https://github.com/mixpanel/mixpanel-iphone/pull/610#discussion_r87506201","pull_request_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/610","_links":{"self":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/comments/87506201"},"html":{"href":"https://github.com/mixpanel/mixpanel-iphone/pull/610#discussion_r87506201"},"pull_request":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/610"}}},"pull_request":{"url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/610","id":93219739,"html_url":"https://github.com/mixpanel/mixpanel-iphone/pull/610","diff_url":"https://github.com/mixpanel/mixpanel-iphone/pull/610.diff","patch_url":"https://github.com/mixpanel/mixpanel-iphone/pull/610.patch","issue_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues/610","number":610,"state":"open","locked":false,"title":"lower timeout times for network requests to not block serial queue","user":{"login":"yarneo","id":4066863,"avatar_url":"https://avatars.githubusercontent.com/u/4066863?v=3","gravatar_id":"","url":"https://api.github.com/users/yarneo","html_url":"https://github.com/yarneo","followers_url":"https://api.github.com/users/yarneo/followers","following_url":"https://api.github.com/users/yarneo/following{/other_user}","gists_url":"https://api.github.com/users/yarneo/gists{/gist_id}","starred_url":"https://api.github.com/users/yarneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarneo/subscriptions","organizations_url":"https://api.github.com/users/yarneo/orgs","repos_url":"https://api.github.com/users/yarneo/repos","events_url":"https://api.github.com/users/yarneo/events{/privacy}","received_events_url":"https://api.github.com/users/yarneo/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-10T19:58:23Z","updated_at":"2016-11-10T23:05:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"739c80221bd31d2400c2f7419917ab4b19fcf3e2","assignee":{"login":"pchien","id":1988432,"avatar_url":"https://avatars.githubusercontent.com/u/1988432?v=3","gravatar_id":"","url":"https://api.github.com/users/pchien","html_url":"https://github.com/pchien","followers_url":"https://api.github.com/users/pchien/followers","following_url":"https://api.github.com/users/pchien/following{/other_user}","gists_url":"https://api.github.com/users/pchien/gists{/gist_id}","starred_url":"https://api.github.com/users/pchien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchien/subscriptions","organizations_url":"https://api.github.com/users/pchien/orgs","repos_url":"https://api.github.com/users/pchien/repos","events_url":"https://api.github.com/users/pchien/events{/privacy}","received_events_url":"https://api.github.com/users/pchien/received_events","type":"User","site_admin":false},"assignees":[{"login":"pchien","id":1988432,"avatar_url":"https://avatars.githubusercontent.com/u/1988432?v=3","gravatar_id":"","url":"https://api.github.com/users/pchien","html_url":"https://github.com/pchien","followers_url":"https://api.github.com/users/pchien/followers","following_url":"https://api.github.com/users/pchien/following{/other_user}","gists_url":"https://api.github.com/users/pchien/gists{/gist_id}","starred_url":"https://api.github.com/users/pchien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchien/subscriptions","organizations_url":"https://api.github.com/users/pchien/orgs","repos_url":"https://api.github.com/users/pchien/repos","events_url":"https://api.github.com/users/pchien/events{/privacy}","received_events_url":"https://api.github.com/users/pchien/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/610/commits","review_comments_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/610/comments","review_comment_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues/610/comments","statuses_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/statuses/5c83d90a86f5296b4197d88cf2f29eb7c39afd70","head":{"label":"mixpanel:lower-network-requests-timeout","ref":"lower-network-requests-timeout","sha":"5c83d90a86f5296b4197d88cf2f29eb7c39afd70","user":{"login":"mixpanel","id":63653,"avatar_url":"https://avatars.githubusercontent.com/u/63653?v=3","gravatar_id":"","url":"https://api.github.com/users/mixpanel","html_url":"https://github.com/mixpanel","followers_url":"https://api.github.com/users/mixpanel/followers","following_url":"https://api.github.com/users/mixpanel/following{/other_user}","gists_url":"https://api.github.com/users/mixpanel/gists{/gist_id}","starred_url":"https://api.github.com/users/mixpanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixpanel/subscriptions","organizations_url":"https://api.github.com/users/mixpanel/orgs","repos_url":"https://api.github.com/users/mixpanel/repos","events_url":"https://api.github.com/users/mixpanel/events{/privacy}","received_events_url":"https://api.github.com/users/mixpanel/received_events","type":"Organization","site_admin":false},"repo":{"id":775069,"name":"mixpanel-iphone","full_name":"mixpanel/mixpanel-iphone","owner":{"login":"mixpanel","id":63653,"avatar_url":"https://avatars.githubusercontent.com/u/63653?v=3","gravatar_id":"","url":"https://api.github.com/users/mixpanel","html_url":"https://github.com/mixpanel","followers_url":"https://api.github.com/users/mixpanel/followers","following_url":"https://api.github.com/users/mixpanel/following{/other_user}","gists_url":"https://api.github.com/users/mixpanel/gists{/gist_id}","starred_url":"https://api.github.com/users/mixpanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixpanel/subscriptions","organizations_url":"https://api.github.com/users/mixpanel/orgs","repos_url":"https://api.github.com/users/mixpanel/repos","events_url":"https://api.github.com/users/mixpanel/events{/privacy}","received_events_url":"https://api.github.com/users/mixpanel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mixpanel/mixpanel-iphone","description":"iPhone tracking library for Mixpanel Analytics","fork":false,"url":"https://api.github.com/repos/mixpanel/mixpanel-iphone","forks_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/forks","keys_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/teams","hooks_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/hooks","issue_events_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues/events{/number}","events_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/events","assignees_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/assignees{/user}","branches_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/branches{/branch}","tags_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/tags","blobs_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/refs{/sha}","trees_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/statuses/{sha}","languages_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/languages","stargazers_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/stargazers","contributors_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/contributors","subscribers_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/subscribers","subscription_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/subscription","commits_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/commits{/sha}","git_commits_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/commits{/sha}","comments_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/comments{/number}","issue_comment_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues/comments{/number}","contents_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/contents/{+path}","compare_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/merges","archive_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/downloads","issues_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues{/number}","pulls_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls{/number}","milestones_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/milestones{/number}","notifications_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/labels{/name}","releases_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/releases{/id}","deployments_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/deployments","created_at":"2010-07-14T17:48:47Z","updated_at":"2016-11-10T02:50:08Z","pushed_at":"2016-11-10T22:59:50Z","git_url":"git://github.com/mixpanel/mixpanel-iphone.git","ssh_url":"git@github.com:mixpanel/mixpanel-iphone.git","clone_url":"https://github.com/mixpanel/mixpanel-iphone.git","svn_url":"https://github.com/mixpanel/mixpanel-iphone","homepage":"http://mixpanel.com","size":37565,"stargazers_count":536,"watchers_count":536,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":395,"mirror_url":null,"open_issues_count":11,"forks":395,"open_issues":11,"watchers":536,"default_branch":"master"}},"base":{"label":"mixpanel:master","ref":"master","sha":"69f5672475928775c48245206963a14c2e1ecbaf","user":{"login":"mixpanel","id":63653,"avatar_url":"https://avatars.githubusercontent.com/u/63653?v=3","gravatar_id":"","url":"https://api.github.com/users/mixpanel","html_url":"https://github.com/mixpanel","followers_url":"https://api.github.com/users/mixpanel/followers","following_url":"https://api.github.com/users/mixpanel/following{/other_user}","gists_url":"https://api.github.com/users/mixpanel/gists{/gist_id}","starred_url":"https://api.github.com/users/mixpanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixpanel/subscriptions","organizations_url":"https://api.github.com/users/mixpanel/orgs","repos_url":"https://api.github.com/users/mixpanel/repos","events_url":"https://api.github.com/users/mixpanel/events{/privacy}","received_events_url":"https://api.github.com/users/mixpanel/received_events","type":"Organization","site_admin":false},"repo":{"id":775069,"name":"mixpanel-iphone","full_name":"mixpanel/mixpanel-iphone","owner":{"login":"mixpanel","id":63653,"avatar_url":"https://avatars.githubusercontent.com/u/63653?v=3","gravatar_id":"","url":"https://api.github.com/users/mixpanel","html_url":"https://github.com/mixpanel","followers_url":"https://api.github.com/users/mixpanel/followers","following_url":"https://api.github.com/users/mixpanel/following{/other_user}","gists_url":"https://api.github.com/users/mixpanel/gists{/gist_id}","starred_url":"https://api.github.com/users/mixpanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixpanel/subscriptions","organizations_url":"https://api.github.com/users/mixpanel/orgs","repos_url":"https://api.github.com/users/mixpanel/repos","events_url":"https://api.github.com/users/mixpanel/events{/privacy}","received_events_url":"https://api.github.com/users/mixpanel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mixpanel/mixpanel-iphone","description":"iPhone tracking library for Mixpanel Analytics","fork":false,"url":"https://api.github.com/repos/mixpanel/mixpanel-iphone","forks_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/forks","keys_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/teams","hooks_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/hooks","issue_events_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues/events{/number}","events_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/events","assignees_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/assignees{/user}","branches_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/branches{/branch}","tags_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/tags","blobs_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/refs{/sha}","trees_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/statuses/{sha}","languages_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/languages","stargazers_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/stargazers","contributors_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/contributors","subscribers_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/subscribers","subscription_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/subscription","commits_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/commits{/sha}","git_commits_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/commits{/sha}","comments_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/comments{/number}","issue_comment_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues/comments{/number}","contents_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/contents/{+path}","compare_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/merges","archive_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/downloads","issues_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues{/number}","pulls_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls{/number}","milestones_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/milestones{/number}","notifications_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/labels{/name}","releases_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/releases{/id}","deployments_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/deployments","created_at":"2010-07-14T17:48:47Z","updated_at":"2016-11-10T02:50:08Z","pushed_at":"2016-11-10T22:59:50Z","git_url":"git://github.com/mixpanel/mixpanel-iphone.git","ssh_url":"git@github.com:mixpanel/mixpanel-iphone.git","clone_url":"https://github.com/mixpanel/mixpanel-iphone.git","svn_url":"https://github.com/mixpanel/mixpanel-iphone","homepage":"http://mixpanel.com","size":37565,"stargazers_count":536,"watchers_count":536,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":395,"mirror_url":null,"open_issues_count":11,"forks":395,"open_issues":11,"watchers":536,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/610"},"html":{"href":"https://github.com/mixpanel/mixpanel-iphone/pull/610"},"issue":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues/610"},"comments":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues/610/comments"},"review_comments":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/610/comments"},"review_comment":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/610/commits"},"statuses":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/statuses/5c83d90a86f5296b4197d88cf2f29eb7c39afd70"}}}}
{"actor":{"display_login":"yarneo"}}