{"action":"created","issue":{"url":"https://api.github.com/repos/nmathewson/Libevent/issues/131","repository_url":"https://api.github.com/repos/nmathewson/Libevent","labels_url":"https://api.github.com/repos/nmathewson/Libevent/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/nmathewson/Libevent/issues/131/comments","events_url":"https://api.github.com/repos/nmathewson/Libevent/issues/131/events","html_url":"https://github.com/nmathewson/Libevent/pull/131","id":178067495,"number":131,"title":"Check if event already in heap in min_heap_push","user":{"login":"SahilAggarwal","id":6149758,"avatar_url":"https://avatars.githubusercontent.com/u/6149758?v=3","gravatar_id":"","url":"https://api.github.com/users/SahilAggarwal","html_url":"https://github.com/SahilAggarwal","followers_url":"https://api.github.com/users/SahilAggarwal/followers","following_url":"https://api.github.com/users/SahilAggarwal/following{/other_user}","gists_url":"https://api.github.com/users/SahilAggarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/SahilAggarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SahilAggarwal/subscriptions","organizations_url":"https://api.github.com/users/SahilAggarwal/orgs","repos_url":"https://api.github.com/users/SahilAggarwal/repos","events_url":"https://api.github.com/users/SahilAggarwal/events{/privacy}","received_events_url":"https://api.github.com/users/SahilAggarwal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-20T13:57:47Z","updated_at":"2016-10-04T22:16:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nmathewson/Libevent/pulls/131","html_url":"https://github.com/nmathewson/Libevent/pull/131","diff_url":"https://github.com/nmathewson/Libevent/pull/131.diff","patch_url":"https://github.com/nmathewson/Libevent/pull/131.patch"},"body":"* I know its not possible that we push event which is already in the \r\n  heap but its good to have guard rail to protect against such cases.\r\n* Encountered issue in 2.0.19-stable where there were duplicate events\r\n  in the heap in case of http retry therefore on removal we end up with \r\n  event in heap which never comes out and goes in infinite loop.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/nmathewson/Libevent/issues/comments/251529764","html_url":"https://github.com/nmathewson/Libevent/pull/131#issuecomment-251529764","issue_url":"https://api.github.com/repos/nmathewson/Libevent/issues/131","id":251529764,"user":{"login":"azat","id":430798,"avatar_url":"https://avatars.githubusercontent.com/u/430798?v=3","gravatar_id":"","url":"https://api.github.com/users/azat","html_url":"https://github.com/azat","followers_url":"https://api.github.com/users/azat/followers","following_url":"https://api.github.com/users/azat/following{/other_user}","gists_url":"https://api.github.com/users/azat/gists{/gist_id}","starred_url":"https://api.github.com/users/azat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azat/subscriptions","organizations_url":"https://api.github.com/users/azat/orgs","repos_url":"https://api.github.com/users/azat/repos","events_url":"https://api.github.com/users/azat/events{/privacy}","received_events_url":"https://api.github.com/users/azat/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T22:16:09Z","updated_at":"2016-10-04T22:16:09Z","body":"Actually there are cases for -1 either, https://github.com/libevent/libevent/blob/master/minheap-internal.h#L119"}}
{"actor":{"display_login":"azat"}}