{"action":"opened","number":70,"pull_request":{"url":"https://api.github.com/repos/arvidn/libtorrent/pulls/70","id":41715277,"html_url":"https://github.com/arvidn/libtorrent/pull/70","diff_url":"https://github.com/arvidn/libtorrent/pull/70.diff","patch_url":"https://github.com/arvidn/libtorrent/pull/70.patch","issue_url":"https://api.github.com/repos/arvidn/libtorrent/issues/70","number":70,"state":"open","locked":false,"title":"Call callback function immediately when get data for mutable data.","user":{"login":"thomas-yuan","id":13663657,"avatar_url":"https://avatars.githubusercontent.com/u/13663657?v=3","gravatar_id":"","url":"https://api.github.com/users/thomas-yuan","html_url":"https://github.com/thomas-yuan","followers_url":"https://api.github.com/users/thomas-yuan/followers","following_url":"https://api.github.com/users/thomas-yuan/following{/other_user}","gists_url":"https://api.github.com/users/thomas-yuan/gists{/gist_id}","starred_url":"https://api.github.com/users/thomas-yuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomas-yuan/subscriptions","organizations_url":"https://api.github.com/users/thomas-yuan/orgs","repos_url":"https://api.github.com/users/thomas-yuan/repos","events_url":"https://api.github.com/users/thomas-yuan/events{/privacy}","received_events_url":"https://api.github.com/users/thomas-yuan/received_events","type":"User","site_admin":false},"body":"I try to use DHT to do something like DNS lookup. Then I found I have to wait 15 seconds to get a notification even I actually get response in 1 second.\r\n\r\nI think the callback function should be called when we get something, It could be 'old' info, but we can update it later. Watling 15 seconds actually only make sense for put_item - to get latest seq. For get_item, caller should assume data will be updated any-time, so callback function could be invoked many times.\r\n","created_at":"2015-08-05T19:17:06Z","updated_at":"2015-08-05T19:17:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/arvidn/libtorrent/pulls/70/commits","review_comments_url":"https://api.github.com/repos/arvidn/libtorrent/pulls/70/comments","review_comment_url":"https://api.github.com/repos/arvidn/libtorrent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arvidn/libtorrent/issues/70/comments","statuses_url":"https://api.github.com/repos/arvidn/libtorrent/statuses/217628f1259be15306bcdf3c2a15e3a2adc0a667","head":{"label":"thomas-yuan:master","ref":"master","sha":"217628f1259be15306bcdf3c2a15e3a2adc0a667","user":{"login":"thomas-yuan","id":13663657,"avatar_url":"https://avatars.githubusercontent.com/u/13663657?v=3","gravatar_id":"","url":"https://api.github.com/users/thomas-yuan","html_url":"https://github.com/thomas-yuan","followers_url":"https://api.github.com/users/thomas-yuan/followers","following_url":"https://api.github.com/users/thomas-yuan/following{/other_user}","gists_url":"https://api.github.com/users/thomas-yuan/gists{/gist_id}","starred_url":"https://api.github.com/users/thomas-yuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomas-yuan/subscriptions","organizations_url":"https://api.github.com/users/thomas-yuan/orgs","repos_url":"https://api.github.com/users/thomas-yuan/repos","events_url":"https://api.github.com/users/thomas-yuan/events{/privacy}","received_events_url":"https://api.github.com/users/thomas-yuan/received_events","type":"User","site_admin":false},"repo":{"id":40263237,"name":"libtorrent","full_name":"thomas-yuan/libtorrent","owner":{"login":"thomas-yuan","id":13663657,"avatar_url":"https://avatars.githubusercontent.com/u/13663657?v=3","gravatar_id":"","url":"https://api.github.com/users/thomas-yuan","html_url":"https://github.com/thomas-yuan","followers_url":"https://api.github.com/users/thomas-yuan/followers","following_url":"https://api.github.com/users/thomas-yuan/following{/other_user}","gists_url":"https://api.github.com/users/thomas-yuan/gists{/gist_id}","starred_url":"https://api.github.com/users/thomas-yuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomas-yuan/subscriptions","organizations_url":"https://api.github.com/users/thomas-yuan/orgs","repos_url":"https://api.github.com/users/thomas-yuan/repos","events_url":"https://api.github.com/users/thomas-yuan/events{/privacy}","received_events_url":"https://api.github.com/users/thomas-yuan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thomas-yuan/libtorrent","description":"an efficient feature complete C++ bittorrent implementation","fork":true,"url":"https://api.github.com/repos/thomas-yuan/libtorrent","forks_url":"https://api.github.com/repos/thomas-yuan/libtorrent/forks","keys_url":"https://api.github.com/repos/thomas-yuan/libtorrent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thomas-yuan/libtorrent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thomas-yuan/libtorrent/teams","hooks_url":"https://api.github.com/repos/thomas-yuan/libtorrent/hooks","issue_events_url":"https://api.github.com/repos/thomas-yuan/libtorrent/issues/events{/number}","events_url":"https://api.github.com/repos/thomas-yuan/libtorrent/events","assignees_url":"https://api.github.com/repos/thomas-yuan/libtorrent/assignees{/user}","branches_url":"https://api.github.com/repos/thomas-yuan/libtorrent/branches{/branch}","tags_url":"https://api.github.com/repos/thomas-yuan/libtorrent/tags","blobs_url":"https://api.github.com/repos/thomas-yuan/libtorrent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thomas-yuan/libtorrent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thomas-yuan/libtorrent/git/refs{/sha}","trees_url":"https://api.github.com/repos/thomas-yuan/libtorrent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thomas-yuan/libtorrent/statuses/{sha}","languages_url":"https://api.github.com/repos/thomas-yuan/libtorrent/languages","stargazers_url":"https://api.github.com/repos/thomas-yuan/libtorrent/stargazers","contributors_url":"https://api.github.com/repos/thomas-yuan/libtorrent/contributors","subscribers_url":"https://api.github.com/repos/thomas-yuan/libtorrent/subscribers","subscription_url":"https://api.github.com/repos/thomas-yuan/libtorrent/subscription","commits_url":"https://api.github.com/repos/thomas-yuan/libtorrent/commits{/sha}","git_commits_url":"https://api.github.com/repos/thomas-yuan/libtorrent/git/commits{/sha}","comments_url":"https://api.github.com/repos/thomas-yuan/libtorrent/comments{/number}","issue_comment_url":"https://api.github.com/repos/thomas-yuan/libtorrent/issues/comments{/number}","contents_url":"https://api.github.com/repos/thomas-yuan/libtorrent/contents/{+path}","compare_url":"https://api.github.com/repos/thomas-yuan/libtorrent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thomas-yuan/libtorrent/merges","archive_url":"https://api.github.com/repos/thomas-yuan/libtorrent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thomas-yuan/libtorrent/downloads","issues_url":"https://api.github.com/repos/thomas-yuan/libtorrent/issues{/number}","pulls_url":"https://api.github.com/repos/thomas-yuan/libtorrent/pulls{/number}","milestones_url":"https://api.github.com/repos/thomas-yuan/libtorrent/milestones{/number}","notifications_url":"https://api.github.com/repos/thomas-yuan/libtorrent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thomas-yuan/libtorrent/labels{/name}","releases_url":"https://api.github.com/repos/thomas-yuan/libtorrent/releases{/id}","created_at":"2015-08-05T18:52:01Z","updated_at":"2015-08-05T18:52:04Z","pushed_at":"2015-08-05T18:55:44Z","git_url":"git://github.com/thomas-yuan/libtorrent.git","ssh_url":"git@github.com:thomas-yuan/libtorrent.git","clone_url":"https://github.com/thomas-yuan/libtorrent.git","svn_url":"https://github.com/thomas-yuan/libtorrent","homepage":"http://libtorrent.org","size":65778,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"arvidn:master","ref":"master","sha":"fe3a8139d7ce40b49c078364b54be835875ae43a","user":{"login":"arvidn","id":661450,"avatar_url":"https://avatars.githubusercontent.com/u/661450?v=3","gravatar_id":"","url":"https://api.github.com/users/arvidn","html_url":"https://github.com/arvidn","followers_url":"https://api.github.com/users/arvidn/followers","following_url":"https://api.github.com/users/arvidn/following{/other_user}","gists_url":"https://api.github.com/users/arvidn/gists{/gist_id}","starred_url":"https://api.github.com/users/arvidn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arvidn/subscriptions","organizations_url":"https://api.github.com/users/arvidn/orgs","repos_url":"https://api.github.com/users/arvidn/repos","events_url":"https://api.github.com/users/arvidn/events{/privacy}","received_events_url":"https://api.github.com/users/arvidn/received_events","type":"User","site_admin":false},"repo":{"id":36781769,"name":"libtorrent","full_name":"arvidn/libtorrent","owner":{"login":"arvidn","id":661450,"avatar_url":"https://avatars.githubusercontent.com/u/661450?v=3","gravatar_id":"","url":"https://api.github.com/users/arvidn","html_url":"https://github.com/arvidn","followers_url":"https://api.github.com/users/arvidn/followers","following_url":"https://api.github.com/users/arvidn/following{/other_user}","gists_url":"https://api.github.com/users/arvidn/gists{/gist_id}","starred_url":"https://api.github.com/users/arvidn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arvidn/subscriptions","organizations_url":"https://api.github.com/users/arvidn/orgs","repos_url":"https://api.github.com/users/arvidn/repos","events_url":"https://api.github.com/users/arvidn/events{/privacy}","received_events_url":"https://api.github.com/users/arvidn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arvidn/libtorrent","description":"an efficient feature complete C++ bittorrent implementation","fork":false,"url":"https://api.github.com/repos/arvidn/libtorrent","forks_url":"https://api.github.com/repos/arvidn/libtorrent/forks","keys_url":"https://api.github.com/repos/arvidn/libtorrent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arvidn/libtorrent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arvidn/libtorrent/teams","hooks_url":"https://api.github.com/repos/arvidn/libtorrent/hooks","issue_events_url":"https://api.github.com/repos/arvidn/libtorrent/issues/events{/number}","events_url":"https://api.github.com/repos/arvidn/libtorrent/events","assignees_url":"https://api.github.com/repos/arvidn/libtorrent/assignees{/user}","branches_url":"https://api.github.com/repos/arvidn/libtorrent/branches{/branch}","tags_url":"https://api.github.com/repos/arvidn/libtorrent/tags","blobs_url":"https://api.github.com/repos/arvidn/libtorrent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arvidn/libtorrent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arvidn/libtorrent/git/refs{/sha}","trees_url":"https://api.github.com/repos/arvidn/libtorrent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arvidn/libtorrent/statuses/{sha}","languages_url":"https://api.github.com/repos/arvidn/libtorrent/languages","stargazers_url":"https://api.github.com/repos/arvidn/libtorrent/stargazers","contributors_url":"https://api.github.com/repos/arvidn/libtorrent/contributors","subscribers_url":"https://api.github.com/repos/arvidn/libtorrent/subscribers","subscription_url":"https://api.github.com/repos/arvidn/libtorrent/subscription","commits_url":"https://api.github.com/repos/arvidn/libtorrent/commits{/sha}","git_commits_url":"https://api.github.com/repos/arvidn/libtorrent/git/commits{/sha}","comments_url":"https://api.github.com/repos/arvidn/libtorrent/comments{/number}","issue_comment_url":"https://api.github.com/repos/arvidn/libtorrent/issues/comments{/number}","contents_url":"https://api.github.com/repos/arvidn/libtorrent/contents/{+path}","compare_url":"https://api.github.com/repos/arvidn/libtorrent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arvidn/libtorrent/merges","archive_url":"https://api.github.com/repos/arvidn/libtorrent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arvidn/libtorrent/downloads","issues_url":"https://api.github.com/repos/arvidn/libtorrent/issues{/number}","pulls_url":"https://api.github.com/repos/arvidn/libtorrent/pulls{/number}","milestones_url":"https://api.github.com/repos/arvidn/libtorrent/milestones{/number}","notifications_url":"https://api.github.com/repos/arvidn/libtorrent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arvidn/libtorrent/labels{/name}","releases_url":"https://api.github.com/repos/arvidn/libtorrent/releases{/id}","created_at":"2015-06-03T05:22:03Z","updated_at":"2015-08-05T14:11:21Z","pushed_at":"2015-08-05T04:19:06Z","git_url":"git://github.com/arvidn/libtorrent.git","ssh_url":"git@github.com:arvidn/libtorrent.git","clone_url":"https://github.com/arvidn/libtorrent.git","svn_url":"https://github.com/arvidn/libtorrent","homepage":"http://libtorrent.org","size":65778,"stargazers_count":75,"watchers_count":75,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":21,"forks":23,"open_issues":21,"watchers":75,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arvidn/libtorrent/pulls/70"},"html":{"href":"https://github.com/arvidn/libtorrent/pull/70"},"issue":{"href":"https://api.github.com/repos/arvidn/libtorrent/issues/70"},"comments":{"href":"https://api.github.com/repos/arvidn/libtorrent/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/arvidn/libtorrent/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/arvidn/libtorrent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arvidn/libtorrent/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/arvidn/libtorrent/statuses/217628f1259be15306bcdf3c2a15e3a2adc0a667"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8,"deletions":0,"changed_files":1}}