{"action":"opened","number":710,"pull_request":{"url":"https://api.github.com/repos/feross/webtorrent/pulls/710","id":64579097,"html_url":"https://github.com/feross/webtorrent/pull/710","diff_url":"https://github.com/feross/webtorrent/pull/710.diff","patch_url":"https://github.com/feross/webtorrent/pull/710.patch","issue_url":"https://api.github.com/repos/feross/webtorrent/issues/710","number":710,"state":"open","locked":false,"title":"Max web conns default","user":{"login":"DiegoRBaquero","id":2006839,"avatar_url":"https://avatars.githubusercontent.com/u/2006839?v=3","gravatar_id":"","url":"https://api.github.com/users/DiegoRBaquero","html_url":"https://github.com/DiegoRBaquero","followers_url":"https://api.github.com/users/DiegoRBaquero/followers","following_url":"https://api.github.com/users/DiegoRBaquero/following{/other_user}","gists_url":"https://api.github.com/users/DiegoRBaquero/gists{/gist_id}","starred_url":"https://api.github.com/users/DiegoRBaquero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiegoRBaquero/subscriptions","organizations_url":"https://api.github.com/users/DiegoRBaquero/orgs","repos_url":"https://api.github.com/users/DiegoRBaquero/repos","events_url":"https://api.github.com/users/DiegoRBaquero/events{/privacy}","received_events_url":"https://api.github.com/users/DiegoRBaquero/received_events","type":"User","site_admin":false},"body":"After a lot of testing and profiling (because I was naive) I found that it's best to keep the concurrent connections small and rotate them as they become available.\r\n\r\nThis PR sets the maxWebConns to 4 by default. Making a webseed's max request vary from 1 to 4 depending on its speed & piece length.","created_at":"2016-03-30T06:49:14Z","updated_at":"2016-03-30T06:49:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/feross/webtorrent/pulls/710/commits","review_comments_url":"https://api.github.com/repos/feross/webtorrent/pulls/710/comments","review_comment_url":"https://api.github.com/repos/feross/webtorrent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/feross/webtorrent/issues/710/comments","statuses_url":"https://api.github.com/repos/feross/webtorrent/statuses/b792720d16964857069573353cf763ed828df917","head":{"label":"feross:max-web-conns-default","ref":"max-web-conns-default","sha":"b792720d16964857069573353cf763ed828df917","user":{"login":"feross","id":121766,"avatar_url":"https://avatars.githubusercontent.com/u/121766?v=3","gravatar_id":"","url":"https://api.github.com/users/feross","html_url":"https://github.com/feross","followers_url":"https://api.github.com/users/feross/followers","following_url":"https://api.github.com/users/feross/following{/other_user}","gists_url":"https://api.github.com/users/feross/gists{/gist_id}","starred_url":"https://api.github.com/users/feross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feross/subscriptions","organizations_url":"https://api.github.com/users/feross/orgs","repos_url":"https://api.github.com/users/feross/repos","events_url":"https://api.github.com/users/feross/events{/privacy}","received_events_url":"https://api.github.com/users/feross/received_events","type":"User","site_admin":false},"repo":{"id":13584262,"name":"webtorrent","full_name":"feross/webtorrent","owner":{"login":"feross","id":121766,"avatar_url":"https://avatars.githubusercontent.com/u/121766?v=3","gravatar_id":"","url":"https://api.github.com/users/feross","html_url":"https://github.com/feross","followers_url":"https://api.github.com/users/feross/followers","following_url":"https://api.github.com/users/feross/following{/other_user}","gists_url":"https://api.github.com/users/feross/gists{/gist_id}","starred_url":"https://api.github.com/users/feross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feross/subscriptions","organizations_url":"https://api.github.com/users/feross/orgs","repos_url":"https://api.github.com/users/feross/repos","events_url":"https://api.github.com/users/feross/events{/privacy}","received_events_url":"https://api.github.com/users/feross/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/feross/webtorrent","description":":zap: Streaming torrent client for the web","fork":false,"url":"https://api.github.com/repos/feross/webtorrent","forks_url":"https://api.github.com/repos/feross/webtorrent/forks","keys_url":"https://api.github.com/repos/feross/webtorrent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/feross/webtorrent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/feross/webtorrent/teams","hooks_url":"https://api.github.com/repos/feross/webtorrent/hooks","issue_events_url":"https://api.github.com/repos/feross/webtorrent/issues/events{/number}","events_url":"https://api.github.com/repos/feross/webtorrent/events","assignees_url":"https://api.github.com/repos/feross/webtorrent/assignees{/user}","branches_url":"https://api.github.com/repos/feross/webtorrent/branches{/branch}","tags_url":"https://api.github.com/repos/feross/webtorrent/tags","blobs_url":"https://api.github.com/repos/feross/webtorrent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/feross/webtorrent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/feross/webtorrent/git/refs{/sha}","trees_url":"https://api.github.com/repos/feross/webtorrent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/feross/webtorrent/statuses/{sha}","languages_url":"https://api.github.com/repos/feross/webtorrent/languages","stargazers_url":"https://api.github.com/repos/feross/webtorrent/stargazers","contributors_url":"https://api.github.com/repos/feross/webtorrent/contributors","subscribers_url":"https://api.github.com/repos/feross/webtorrent/subscribers","subscription_url":"https://api.github.com/repos/feross/webtorrent/subscription","commits_url":"https://api.github.com/repos/feross/webtorrent/commits{/sha}","git_commits_url":"https://api.github.com/repos/feross/webtorrent/git/commits{/sha}","comments_url":"https://api.github.com/repos/feross/webtorrent/comments{/number}","issue_comment_url":"https://api.github.com/repos/feross/webtorrent/issues/comments{/number}","contents_url":"https://api.github.com/repos/feross/webtorrent/contents/{+path}","compare_url":"https://api.github.com/repos/feross/webtorrent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/feross/webtorrent/merges","archive_url":"https://api.github.com/repos/feross/webtorrent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/feross/webtorrent/downloads","issues_url":"https://api.github.com/repos/feross/webtorrent/issues{/number}","pulls_url":"https://api.github.com/repos/feross/webtorrent/pulls{/number}","milestones_url":"https://api.github.com/repos/feross/webtorrent/milestones{/number}","notifications_url":"https://api.github.com/repos/feross/webtorrent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/feross/webtorrent/labels{/name}","releases_url":"https://api.github.com/repos/feross/webtorrent/releases{/id}","deployments_url":"https://api.github.com/repos/feross/webtorrent/deployments","created_at":"2013-10-15T08:16:40Z","updated_at":"2016-03-30T05:12:23Z","pushed_at":"2016-03-30T06:46:05Z","git_url":"git://github.com/feross/webtorrent.git","ssh_url":"git@github.com:feross/webtorrent.git","clone_url":"https://github.com/feross/webtorrent.git","svn_url":"https://github.com/feross/webtorrent","homepage":"https://webtorrent.io","size":6777,"stargazers_count":9394,"watchers_count":9394,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":695,"mirror_url":null,"open_issues_count":70,"forks":695,"open_issues":70,"watchers":9394,"default_branch":"master"}},"base":{"label":"feross:master","ref":"master","sha":"6a7f4386aed9d142deef856eaa562fa718d40895","user":{"login":"feross","id":121766,"avatar_url":"https://avatars.githubusercontent.com/u/121766?v=3","gravatar_id":"","url":"https://api.github.com/users/feross","html_url":"https://github.com/feross","followers_url":"https://api.github.com/users/feross/followers","following_url":"https://api.github.com/users/feross/following{/other_user}","gists_url":"https://api.github.com/users/feross/gists{/gist_id}","starred_url":"https://api.github.com/users/feross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feross/subscriptions","organizations_url":"https://api.github.com/users/feross/orgs","repos_url":"https://api.github.com/users/feross/repos","events_url":"https://api.github.com/users/feross/events{/privacy}","received_events_url":"https://api.github.com/users/feross/received_events","type":"User","site_admin":false},"repo":{"id":13584262,"name":"webtorrent","full_name":"feross/webtorrent","owner":{"login":"feross","id":121766,"avatar_url":"https://avatars.githubusercontent.com/u/121766?v=3","gravatar_id":"","url":"https://api.github.com/users/feross","html_url":"https://github.com/feross","followers_url":"https://api.github.com/users/feross/followers","following_url":"https://api.github.com/users/feross/following{/other_user}","gists_url":"https://api.github.com/users/feross/gists{/gist_id}","starred_url":"https://api.github.com/users/feross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feross/subscriptions","organizations_url":"https://api.github.com/users/feross/orgs","repos_url":"https://api.github.com/users/feross/repos","events_url":"https://api.github.com/users/feross/events{/privacy}","received_events_url":"https://api.github.com/users/feross/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/feross/webtorrent","description":":zap: Streaming torrent client for the web","fork":false,"url":"https://api.github.com/repos/feross/webtorrent","forks_url":"https://api.github.com/repos/feross/webtorrent/forks","keys_url":"https://api.github.com/repos/feross/webtorrent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/feross/webtorrent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/feross/webtorrent/teams","hooks_url":"https://api.github.com/repos/feross/webtorrent/hooks","issue_events_url":"https://api.github.com/repos/feross/webtorrent/issues/events{/number}","events_url":"https://api.github.com/repos/feross/webtorrent/events","assignees_url":"https://api.github.com/repos/feross/webtorrent/assignees{/user}","branches_url":"https://api.github.com/repos/feross/webtorrent/branches{/branch}","tags_url":"https://api.github.com/repos/feross/webtorrent/tags","blobs_url":"https://api.github.com/repos/feross/webtorrent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/feross/webtorrent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/feross/webtorrent/git/refs{/sha}","trees_url":"https://api.github.com/repos/feross/webtorrent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/feross/webtorrent/statuses/{sha}","languages_url":"https://api.github.com/repos/feross/webtorrent/languages","stargazers_url":"https://api.github.com/repos/feross/webtorrent/stargazers","contributors_url":"https://api.github.com/repos/feross/webtorrent/contributors","subscribers_url":"https://api.github.com/repos/feross/webtorrent/subscribers","subscription_url":"https://api.github.com/repos/feross/webtorrent/subscription","commits_url":"https://api.github.com/repos/feross/webtorrent/commits{/sha}","git_commits_url":"https://api.github.com/repos/feross/webtorrent/git/commits{/sha}","comments_url":"https://api.github.com/repos/feross/webtorrent/comments{/number}","issue_comment_url":"https://api.github.com/repos/feross/webtorrent/issues/comments{/number}","contents_url":"https://api.github.com/repos/feross/webtorrent/contents/{+path}","compare_url":"https://api.github.com/repos/feross/webtorrent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/feross/webtorrent/merges","archive_url":"https://api.github.com/repos/feross/webtorrent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/feross/webtorrent/downloads","issues_url":"https://api.github.com/repos/feross/webtorrent/issues{/number}","pulls_url":"https://api.github.com/repos/feross/webtorrent/pulls{/number}","milestones_url":"https://api.github.com/repos/feross/webtorrent/milestones{/number}","notifications_url":"https://api.github.com/repos/feross/webtorrent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/feross/webtorrent/labels{/name}","releases_url":"https://api.github.com/repos/feross/webtorrent/releases{/id}","deployments_url":"https://api.github.com/repos/feross/webtorrent/deployments","created_at":"2013-10-15T08:16:40Z","updated_at":"2016-03-30T05:12:23Z","pushed_at":"2016-03-30T06:46:05Z","git_url":"git://github.com/feross/webtorrent.git","ssh_url":"git@github.com:feross/webtorrent.git","clone_url":"https://github.com/feross/webtorrent.git","svn_url":"https://github.com/feross/webtorrent","homepage":"https://webtorrent.io","size":6777,"stargazers_count":9394,"watchers_count":9394,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":695,"mirror_url":null,"open_issues_count":70,"forks":695,"open_issues":70,"watchers":9394,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/feross/webtorrent/pulls/710"},"html":{"href":"https://github.com/feross/webtorrent/pull/710"},"issue":{"href":"https://api.github.com/repos/feross/webtorrent/issues/710"},"comments":{"href":"https://api.github.com/repos/feross/webtorrent/issues/710/comments"},"review_comments":{"href":"https://api.github.com/repos/feross/webtorrent/pulls/710/comments"},"review_comment":{"href":"https://api.github.com/repos/feross/webtorrent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/feross/webtorrent/pulls/710/commits"},"statuses":{"href":"https://api.github.com/repos/feross/webtorrent/statuses/b792720d16964857069573353cf763ed828df917"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":2,"deletions":2,"changed_files":2}}