{"action":"created","comment":{"url":"https://api.github.com/repos/mapsme/omim/pulls/comments/84912079","pull_request_review_id":5658903,"id":84912079,"diff_hunk":"@@ -22,19 +25,27 @@ Connection::Connection(unique_ptr<platform::Socket> socket, string const & host,\n bool Connection::Reconnect()\n {\n   m_socket->Close();\n-  return m_socket->Open(m_host, m_port);\n+\n+  if (!m_socket->Open(m_host, m_port))\n+    return false;\n+\n+  auto packet = Protocol::CreateAuthPacket(GetPlatform().UniqueClientId());\n+  if (!m_socket->Write(packet.data(), static_cast<uint32_t>(packet.size())))\n+    return false;\n+\n+  string check(\"FAIL\");","path":"tracking/connection.cpp","position":23,"original_position":23,"commit_id":"b7079cc81c73363493e3d109064a6ade784284aa","original_commit_id":"b7079cc81c73363493e3d109064a6ade784284aa","user":{"login":"syershov","id":14223965,"avatar_url":"https://avatars.githubusercontent.com/u/14223965?v=3","gravatar_id":"","url":"https://api.github.com/users/syershov","html_url":"https://github.com/syershov","followers_url":"https://api.github.com/users/syershov/followers","following_url":"https://api.github.com/users/syershov/following{/other_user}","gists_url":"https://api.github.com/users/syershov/gists{/gist_id}","starred_url":"https://api.github.com/users/syershov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syershov/subscriptions","organizations_url":"https://api.github.com/users/syershov/orgs","repos_url":"https://api.github.com/users/syershov/repos","events_url":"https://api.github.com/users/syershov/events{/privacy}","received_events_url":"https://api.github.com/users/syershov/received_events","type":"User","site_admin":false},"body":"переделал","created_at":"2016-10-25T14:13:26Z","updated_at":"2016-10-25T14:13:26Z","html_url":"https://github.com/mapsme/omim/pull/4546#discussion_r84912079","pull_request_url":"https://api.github.com/repos/mapsme/omim/pulls/4546","_links":{"self":{"href":"https://api.github.com/repos/mapsme/omim/pulls/comments/84912079"},"html":{"href":"https://github.com/mapsme/omim/pull/4546#discussion_r84912079"},"pull_request":{"href":"https://api.github.com/repos/mapsme/omim/pulls/4546"}}},"pull_request":{"url":"https://api.github.com/repos/mapsme/omim/pulls/4546","id":90415968,"html_url":"https://github.com/mapsme/omim/pull/4546","diff_url":"https://github.com/mapsme/omim/pull/4546.diff","patch_url":"https://github.com/mapsme/omim/pull/4546.patch","issue_url":"https://api.github.com/repos/mapsme/omim/issues/4546","number":4546,"state":"open","locked":false,"title":"[tracking] Made tracking work","user":{"login":"syershov","id":14223965,"avatar_url":"https://avatars.githubusercontent.com/u/14223965?v=3","gravatar_id":"","url":"https://api.github.com/users/syershov","html_url":"https://github.com/syershov","followers_url":"https://api.github.com/users/syershov/followers","following_url":"https://api.github.com/users/syershov/following{/other_user}","gists_url":"https://api.github.com/users/syershov/gists{/gist_id}","starred_url":"https://api.github.com/users/syershov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syershov/subscriptions","organizations_url":"https://api.github.com/users/syershov/orgs","repos_url":"https://api.github.com/users/syershov/repos","events_url":"https://api.github.com/users/syershov/events{/privacy}","received_events_url":"https://api.github.com/users/syershov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-21T16:58:15Z","updated_at":"2016-10-25T14:13:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42b493839dc6d05921d51816388573742233c96c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mapsme/omim/pulls/4546/commits","review_comments_url":"https://api.github.com/repos/mapsme/omim/pulls/4546/comments","review_comment_url":"https://api.github.com/repos/mapsme/omim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapsme/omim/issues/4546/comments","statuses_url":"https://api.github.com/repos/mapsme/omim/statuses/b7079cc81c73363493e3d109064a6ade784284aa","head":{"label":"syershov:tracking","ref":"tracking","sha":"b7079cc81c73363493e3d109064a6ade784284aa","user":{"login":"syershov","id":14223965,"avatar_url":"https://avatars.githubusercontent.com/u/14223965?v=3","gravatar_id":"","url":"https://api.github.com/users/syershov","html_url":"https://github.com/syershov","followers_url":"https://api.github.com/users/syershov/followers","following_url":"https://api.github.com/users/syershov/following{/other_user}","gists_url":"https://api.github.com/users/syershov/gists{/gist_id}","starred_url":"https://api.github.com/users/syershov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syershov/subscriptions","organizations_url":"https://api.github.com/users/syershov/orgs","repos_url":"https://api.github.com/users/syershov/repos","events_url":"https://api.github.com/users/syershov/events{/privacy}","received_events_url":"https://api.github.com/users/syershov/received_events","type":"User","site_admin":false},"repo":{"id":43428606,"name":"omim","full_name":"syershov/omim","owner":{"login":"syershov","id":14223965,"avatar_url":"https://avatars.githubusercontent.com/u/14223965?v=3","gravatar_id":"","url":"https://api.github.com/users/syershov","html_url":"https://github.com/syershov","followers_url":"https://api.github.com/users/syershov/followers","following_url":"https://api.github.com/users/syershov/following{/other_user}","gists_url":"https://api.github.com/users/syershov/gists{/gist_id}","starred_url":"https://api.github.com/users/syershov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syershov/subscriptions","organizations_url":"https://api.github.com/users/syershov/orgs","repos_url":"https://api.github.com/users/syershov/repos","events_url":"https://api.github.com/users/syershov/events{/privacy}","received_events_url":"https://api.github.com/users/syershov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/syershov/omim","description":"MAPS.ME - Offline OpenStreetMap maps for iOS/Android/Mac/Linux/Windows","fork":true,"url":"https://api.github.com/repos/syershov/omim","forks_url":"https://api.github.com/repos/syershov/omim/forks","keys_url":"https://api.github.com/repos/syershov/omim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/syershov/omim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/syershov/omim/teams","hooks_url":"https://api.github.com/repos/syershov/omim/hooks","issue_events_url":"https://api.github.com/repos/syershov/omim/issues/events{/number}","events_url":"https://api.github.com/repos/syershov/omim/events","assignees_url":"https://api.github.com/repos/syershov/omim/assignees{/user}","branches_url":"https://api.github.com/repos/syershov/omim/branches{/branch}","tags_url":"https://api.github.com/repos/syershov/omim/tags","blobs_url":"https://api.github.com/repos/syershov/omim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/syershov/omim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/syershov/omim/git/refs{/sha}","trees_url":"https://api.github.com/repos/syershov/omim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/syershov/omim/statuses/{sha}","languages_url":"https://api.github.com/repos/syershov/omim/languages","stargazers_url":"https://api.github.com/repos/syershov/omim/stargazers","contributors_url":"https://api.github.com/repos/syershov/omim/contributors","subscribers_url":"https://api.github.com/repos/syershov/omim/subscribers","subscription_url":"https://api.github.com/repos/syershov/omim/subscription","commits_url":"https://api.github.com/repos/syershov/omim/commits{/sha}","git_commits_url":"https://api.github.com/repos/syershov/omim/git/commits{/sha}","comments_url":"https://api.github.com/repos/syershov/omim/comments{/number}","issue_comment_url":"https://api.github.com/repos/syershov/omim/issues/comments{/number}","contents_url":"https://api.github.com/repos/syershov/omim/contents/{+path}","compare_url":"https://api.github.com/repos/syershov/omim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/syershov/omim/merges","archive_url":"https://api.github.com/repos/syershov/omim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/syershov/omim/downloads","issues_url":"https://api.github.com/repos/syershov/omim/issues{/number}","pulls_url":"https://api.github.com/repos/syershov/omim/pulls{/number}","milestones_url":"https://api.github.com/repos/syershov/omim/milestones{/number}","notifications_url":"https://api.github.com/repos/syershov/omim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/syershov/omim/labels{/name}","releases_url":"https://api.github.com/repos/syershov/omim/releases{/id}","deployments_url":"https://api.github.com/repos/syershov/omim/deployments","created_at":"2015-09-30T11:14:03Z","updated_at":"2016-03-28T09:53:51Z","pushed_at":"2016-10-25T12:05:32Z","git_url":"git://github.com/syershov/omim.git","ssh_url":"git@github.com:syershov/omim.git","clone_url":"https://github.com/syershov/omim.git","svn_url":"https://github.com/syershov/omim","homepage":null,"size":2674900,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"mapsme:master","ref":"master","sha":"97517485578e77facbf05b05f0eb841a54aa74fd","user":{"login":"mapsme","id":14185141,"avatar_url":"https://avatars.githubusercontent.com/u/14185141?v=3","gravatar_id":"","url":"https://api.github.com/users/mapsme","html_url":"https://github.com/mapsme","followers_url":"https://api.github.com/users/mapsme/followers","following_url":"https://api.github.com/users/mapsme/following{/other_user}","gists_url":"https://api.github.com/users/mapsme/gists{/gist_id}","starred_url":"https://api.github.com/users/mapsme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapsme/subscriptions","organizations_url":"https://api.github.com/users/mapsme/orgs","repos_url":"https://api.github.com/users/mapsme/repos","events_url":"https://api.github.com/users/mapsme/events{/privacy}","received_events_url":"https://api.github.com/users/mapsme/received_events","type":"Organization","site_admin":false},"repo":{"id":42798033,"name":"omim","full_name":"mapsme/omim","owner":{"login":"mapsme","id":14185141,"avatar_url":"https://avatars.githubusercontent.com/u/14185141?v=3","gravatar_id":"","url":"https://api.github.com/users/mapsme","html_url":"https://github.com/mapsme","followers_url":"https://api.github.com/users/mapsme/followers","following_url":"https://api.github.com/users/mapsme/following{/other_user}","gists_url":"https://api.github.com/users/mapsme/gists{/gist_id}","starred_url":"https://api.github.com/users/mapsme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapsme/subscriptions","organizations_url":"https://api.github.com/users/mapsme/orgs","repos_url":"https://api.github.com/users/mapsme/repos","events_url":"https://api.github.com/users/mapsme/events{/privacy}","received_events_url":"https://api.github.com/users/mapsme/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapsme/omim","description":"MAPS.ME - Offline OpenStreetMap maps for iOS/Android/Mac/Linux/Windows","fork":false,"url":"https://api.github.com/repos/mapsme/omim","forks_url":"https://api.github.com/repos/mapsme/omim/forks","keys_url":"https://api.github.com/repos/mapsme/omim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapsme/omim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapsme/omim/teams","hooks_url":"https://api.github.com/repos/mapsme/omim/hooks","issue_events_url":"https://api.github.com/repos/mapsme/omim/issues/events{/number}","events_url":"https://api.github.com/repos/mapsme/omim/events","assignees_url":"https://api.github.com/repos/mapsme/omim/assignees{/user}","branches_url":"https://api.github.com/repos/mapsme/omim/branches{/branch}","tags_url":"https://api.github.com/repos/mapsme/omim/tags","blobs_url":"https://api.github.com/repos/mapsme/omim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapsme/omim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapsme/omim/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapsme/omim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapsme/omim/statuses/{sha}","languages_url":"https://api.github.com/repos/mapsme/omim/languages","stargazers_url":"https://api.github.com/repos/mapsme/omim/stargazers","contributors_url":"https://api.github.com/repos/mapsme/omim/contributors","subscribers_url":"https://api.github.com/repos/mapsme/omim/subscribers","subscription_url":"https://api.github.com/repos/mapsme/omim/subscription","commits_url":"https://api.github.com/repos/mapsme/omim/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapsme/omim/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapsme/omim/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapsme/omim/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapsme/omim/contents/{+path}","compare_url":"https://api.github.com/repos/mapsme/omim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapsme/omim/merges","archive_url":"https://api.github.com/repos/mapsme/omim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapsme/omim/downloads","issues_url":"https://api.github.com/repos/mapsme/omim/issues{/number}","pulls_url":"https://api.github.com/repos/mapsme/omim/pulls{/number}","milestones_url":"https://api.github.com/repos/mapsme/omim/milestones{/number}","notifications_url":"https://api.github.com/repos/mapsme/omim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapsme/omim/labels{/name}","releases_url":"https://api.github.com/repos/mapsme/omim/releases{/id}","deployments_url":"https://api.github.com/repos/mapsme/omim/deployments","created_at":"2015-09-20T02:57:13Z","updated_at":"2016-10-23T19:13:01Z","pushed_at":"2016-10-25T13:53:55Z","git_url":"git://github.com/mapsme/omim.git","ssh_url":"git@github.com:mapsme/omim.git","clone_url":"https://github.com/mapsme/omim.git","svn_url":"https://github.com/mapsme/omim","homepage":null,"size":2855366,"stargazers_count":2015,"watchers_count":2015,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":380,"mirror_url":null,"open_issues_count":350,"forks":380,"open_issues":350,"watchers":2015,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapsme/omim/pulls/4546"},"html":{"href":"https://github.com/mapsme/omim/pull/4546"},"issue":{"href":"https://api.github.com/repos/mapsme/omim/issues/4546"},"comments":{"href":"https://api.github.com/repos/mapsme/omim/issues/4546/comments"},"review_comments":{"href":"https://api.github.com/repos/mapsme/omim/pulls/4546/comments"},"review_comment":{"href":"https://api.github.com/repos/mapsme/omim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapsme/omim/pulls/4546/commits"},"statuses":{"href":"https://api.github.com/repos/mapsme/omim/statuses/b7079cc81c73363493e3d109064a6ade784284aa"}}}}
{"actor":{"display_login":"syershov"}}