{"action":"created","comment":{"url":"https://api.github.com/repos/mvno/Franz/pulls/comments/63296839","id":63296839,"diff_hunk":"@@ -317,6 +317,17 @@ type ZookeeperClient(connectionLossCallback : Action) =\n         let ping state =\n             state.TcpClient |> TcpClient.write ((new PingRequest()).Serialize(XidConstants.Ping)) |> ignore\n \n+        let reconnect (oldClient : TcpClient.T) state =\n+            if not <| oldClient.Client.Equals(state.TcpClient.Client) then\n+                LogConfiguration.Logger.Trace.Invoke(\"Not reconnecting as state has changed since requested\")\n+                state\n+            else\n+                let reconnect state =\n+                    let newClient = state.TcpClient |> TcpClient.reconnect\n+                    sendConnectRequest state.SessionTimeout state.SessionId state.Password { state with TcpClient = newClient }","path":"src/Franz/Zookeeper.fs","position":392,"original_position":11,"commit_id":"ef4c334bb9ef948d7611e486b4892a86e343b4d3","original_commit_id":"1d80cb8e0349c88d8f3142dbcc26d5ea7af91111","user":{"login":"ChristianTrolleMikkelsen","id":2988027,"avatar_url":"https://avatars.githubusercontent.com/u/2988027?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristianTrolleMikkelsen","html_url":"https://github.com/ChristianTrolleMikkelsen","followers_url":"https://api.github.com/users/ChristianTrolleMikkelsen/followers","following_url":"https://api.github.com/users/ChristianTrolleMikkelsen/following{/other_user}","gists_url":"https://api.github.com/users/ChristianTrolleMikkelsen/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianTrolleMikkelsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianTrolleMikkelsen/subscriptions","organizations_url":"https://api.github.com/users/ChristianTrolleMikkelsen/orgs","repos_url":"https://api.github.com/users/ChristianTrolleMikkelsen/repos","events_url":"https://api.github.com/users/ChristianTrolleMikkelsen/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianTrolleMikkelsen/received_events","type":"User","site_admin":false},"body":"doh","created_at":"2016-05-15T19:41:05Z","updated_at":"2016-05-15T19:41:05Z","html_url":"https://github.com/mvno/Franz/pull/38#discussion_r63296839","pull_request_url":"https://api.github.com/repos/mvno/Franz/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/mvno/Franz/pulls/comments/63296839"},"html":{"href":"https://github.com/mvno/Franz/pull/38#discussion_r63296839"},"pull_request":{"href":"https://api.github.com/repos/mvno/Franz/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/mvno/Franz/pulls/38","id":70020980,"html_url":"https://github.com/mvno/Franz/pull/38","diff_url":"https://github.com/mvno/Franz/pull/38.diff","patch_url":"https://github.com/mvno/Franz/pull/38.patch","issue_url":"https://api.github.com/repos/mvno/Franz/issues/38","number":38,"state":"open","locked":false,"title":"WIP: Zookeeper support","user":{"login":"kichristensen","id":2461567,"avatar_url":"https://avatars.githubusercontent.com/u/2461567?v=3","gravatar_id":"","url":"https://api.github.com/users/kichristensen","html_url":"https://github.com/kichristensen","followers_url":"https://api.github.com/users/kichristensen/followers","following_url":"https://api.github.com/users/kichristensen/following{/other_user}","gists_url":"https://api.github.com/users/kichristensen/gists{/gist_id}","starred_url":"https://api.github.com/users/kichristensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kichristensen/subscriptions","organizations_url":"https://api.github.com/users/kichristensen/orgs","repos_url":"https://api.github.com/users/kichristensen/repos","events_url":"https://api.github.com/users/kichristensen/events{/privacy}","received_events_url":"https://api.github.com/users/kichristensen/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-13T16:12:13Z","updated_at":"2016-05-15T19:41:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e33242027cb10fe60dcd76ce2526c31847d4f325","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mvno/Franz/pulls/38/commits","review_comments_url":"https://api.github.com/repos/mvno/Franz/pulls/38/comments","review_comment_url":"https://api.github.com/repos/mvno/Franz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mvno/Franz/issues/38/comments","statuses_url":"https://api.github.com/repos/mvno/Franz/statuses/ef4c334bb9ef948d7611e486b4892a86e343b4d3","head":{"label":"kichristensen:ZookeeperSupport","ref":"ZookeeperSupport","sha":"ef4c334bb9ef948d7611e486b4892a86e343b4d3","user":{"login":"kichristensen","id":2461567,"avatar_url":"https://avatars.githubusercontent.com/u/2461567?v=3","gravatar_id":"","url":"https://api.github.com/users/kichristensen","html_url":"https://github.com/kichristensen","followers_url":"https://api.github.com/users/kichristensen/followers","following_url":"https://api.github.com/users/kichristensen/following{/other_user}","gists_url":"https://api.github.com/users/kichristensen/gists{/gist_id}","starred_url":"https://api.github.com/users/kichristensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kichristensen/subscriptions","organizations_url":"https://api.github.com/users/kichristensen/orgs","repos_url":"https://api.github.com/users/kichristensen/repos","events_url":"https://api.github.com/users/kichristensen/events{/privacy}","received_events_url":"https://api.github.com/users/kichristensen/received_events","type":"User","site_admin":false},"repo":{"id":41355270,"name":"Franz","full_name":"kichristensen/Franz","owner":{"login":"kichristensen","id":2461567,"avatar_url":"https://avatars.githubusercontent.com/u/2461567?v=3","gravatar_id":"","url":"https://api.github.com/users/kichristensen","html_url":"https://github.com/kichristensen","followers_url":"https://api.github.com/users/kichristensen/followers","following_url":"https://api.github.com/users/kichristensen/following{/other_user}","gists_url":"https://api.github.com/users/kichristensen/gists{/gist_id}","starred_url":"https://api.github.com/users/kichristensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kichristensen/subscriptions","organizations_url":"https://api.github.com/users/kichristensen/orgs","repos_url":"https://api.github.com/users/kichristensen/repos","events_url":"https://api.github.com/users/kichristensen/events{/privacy}","received_events_url":"https://api.github.com/users/kichristensen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kichristensen/Franz","description":"","fork":true,"url":"https://api.github.com/repos/kichristensen/Franz","forks_url":"https://api.github.com/repos/kichristensen/Franz/forks","keys_url":"https://api.github.com/repos/kichristensen/Franz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kichristensen/Franz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kichristensen/Franz/teams","hooks_url":"https://api.github.com/repos/kichristensen/Franz/hooks","issue_events_url":"https://api.github.com/repos/kichristensen/Franz/issues/events{/number}","events_url":"https://api.github.com/repos/kichristensen/Franz/events","assignees_url":"https://api.github.com/repos/kichristensen/Franz/assignees{/user}","branches_url":"https://api.github.com/repos/kichristensen/Franz/branches{/branch}","tags_url":"https://api.github.com/repos/kichristensen/Franz/tags","blobs_url":"https://api.github.com/repos/kichristensen/Franz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kichristensen/Franz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kichristensen/Franz/git/refs{/sha}","trees_url":"https://api.github.com/repos/kichristensen/Franz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kichristensen/Franz/statuses/{sha}","languages_url":"https://api.github.com/repos/kichristensen/Franz/languages","stargazers_url":"https://api.github.com/repos/kichristensen/Franz/stargazers","contributors_url":"https://api.github.com/repos/kichristensen/Franz/contributors","subscribers_url":"https://api.github.com/repos/kichristensen/Franz/subscribers","subscription_url":"https://api.github.com/repos/kichristensen/Franz/subscription","commits_url":"https://api.github.com/repos/kichristensen/Franz/commits{/sha}","git_commits_url":"https://api.github.com/repos/kichristensen/Franz/git/commits{/sha}","comments_url":"https://api.github.com/repos/kichristensen/Franz/comments{/number}","issue_comment_url":"https://api.github.com/repos/kichristensen/Franz/issues/comments{/number}","contents_url":"https://api.github.com/repos/kichristensen/Franz/contents/{+path}","compare_url":"https://api.github.com/repos/kichristensen/Franz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kichristensen/Franz/merges","archive_url":"https://api.github.com/repos/kichristensen/Franz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kichristensen/Franz/downloads","issues_url":"https://api.github.com/repos/kichristensen/Franz/issues{/number}","pulls_url":"https://api.github.com/repos/kichristensen/Franz/pulls{/number}","milestones_url":"https://api.github.com/repos/kichristensen/Franz/milestones{/number}","notifications_url":"https://api.github.com/repos/kichristensen/Franz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kichristensen/Franz/labels{/name}","releases_url":"https://api.github.com/repos/kichristensen/Franz/releases{/id}","deployments_url":"https://api.github.com/repos/kichristensen/Franz/deployments","created_at":"2015-08-25T09:27:14Z","updated_at":"2015-08-25T09:27:14Z","pushed_at":"2016-05-15T19:37:00Z","git_url":"git://github.com/kichristensen/Franz.git","ssh_url":"git@github.com:kichristensen/Franz.git","clone_url":"https://github.com/kichristensen/Franz.git","svn_url":"https://github.com/kichristensen/Franz","homepage":null,"size":606,"stargazers_count":0,"watchers_count":0,"language":"F#","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":"mvno:master","ref":"master","sha":"df95c4a89a7138dc116fb42e275d6884cbd80904","user":{"login":"mvno","id":322438,"avatar_url":"https://avatars.githubusercontent.com/u/322438?v=3","gravatar_id":"","url":"https://api.github.com/users/mvno","html_url":"https://github.com/mvno","followers_url":"https://api.github.com/users/mvno/followers","following_url":"https://api.github.com/users/mvno/following{/other_user}","gists_url":"https://api.github.com/users/mvno/gists{/gist_id}","starred_url":"https://api.github.com/users/mvno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvno/subscriptions","organizations_url":"https://api.github.com/users/mvno/orgs","repos_url":"https://api.github.com/users/mvno/repos","events_url":"https://api.github.com/users/mvno/events{/privacy}","received_events_url":"https://api.github.com/users/mvno/received_events","type":"Organization","site_admin":false},"repo":{"id":40124221,"name":"Franz","full_name":"mvno/Franz","owner":{"login":"mvno","id":322438,"avatar_url":"https://avatars.githubusercontent.com/u/322438?v=3","gravatar_id":"","url":"https://api.github.com/users/mvno","html_url":"https://github.com/mvno","followers_url":"https://api.github.com/users/mvno/followers","following_url":"https://api.github.com/users/mvno/following{/other_user}","gists_url":"https://api.github.com/users/mvno/gists{/gist_id}","starred_url":"https://api.github.com/users/mvno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvno/subscriptions","organizations_url":"https://api.github.com/users/mvno/orgs","repos_url":"https://api.github.com/users/mvno/repos","events_url":"https://api.github.com/users/mvno/events{/privacy}","received_events_url":"https://api.github.com/users/mvno/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mvno/Franz","description":"Franz is a .NET client for Kafka implemented in F#","fork":false,"url":"https://api.github.com/repos/mvno/Franz","forks_url":"https://api.github.com/repos/mvno/Franz/forks","keys_url":"https://api.github.com/repos/mvno/Franz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mvno/Franz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mvno/Franz/teams","hooks_url":"https://api.github.com/repos/mvno/Franz/hooks","issue_events_url":"https://api.github.com/repos/mvno/Franz/issues/events{/number}","events_url":"https://api.github.com/repos/mvno/Franz/events","assignees_url":"https://api.github.com/repos/mvno/Franz/assignees{/user}","branches_url":"https://api.github.com/repos/mvno/Franz/branches{/branch}","tags_url":"https://api.github.com/repos/mvno/Franz/tags","blobs_url":"https://api.github.com/repos/mvno/Franz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mvno/Franz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mvno/Franz/git/refs{/sha}","trees_url":"https://api.github.com/repos/mvno/Franz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mvno/Franz/statuses/{sha}","languages_url":"https://api.github.com/repos/mvno/Franz/languages","stargazers_url":"https://api.github.com/repos/mvno/Franz/stargazers","contributors_url":"https://api.github.com/repos/mvno/Franz/contributors","subscribers_url":"https://api.github.com/repos/mvno/Franz/subscribers","subscription_url":"https://api.github.com/repos/mvno/Franz/subscription","commits_url":"https://api.github.com/repos/mvno/Franz/commits{/sha}","git_commits_url":"https://api.github.com/repos/mvno/Franz/git/commits{/sha}","comments_url":"https://api.github.com/repos/mvno/Franz/comments{/number}","issue_comment_url":"https://api.github.com/repos/mvno/Franz/issues/comments{/number}","contents_url":"https://api.github.com/repos/mvno/Franz/contents/{+path}","compare_url":"https://api.github.com/repos/mvno/Franz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mvno/Franz/merges","archive_url":"https://api.github.com/repos/mvno/Franz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mvno/Franz/downloads","issues_url":"https://api.github.com/repos/mvno/Franz/issues{/number}","pulls_url":"https://api.github.com/repos/mvno/Franz/pulls{/number}","milestones_url":"https://api.github.com/repos/mvno/Franz/milestones{/number}","notifications_url":"https://api.github.com/repos/mvno/Franz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mvno/Franz/labels{/name}","releases_url":"https://api.github.com/repos/mvno/Franz/releases{/id}","deployments_url":"https://api.github.com/repos/mvno/Franz/deployments","created_at":"2015-08-03T12:45:12Z","updated_at":"2016-02-16T09:25:57Z","pushed_at":"2016-05-15T19:37:00Z","git_url":"git://github.com/mvno/Franz.git","ssh_url":"git@github.com:mvno/Franz.git","clone_url":"https://github.com/mvno/Franz.git","svn_url":"https://github.com/mvno/Franz","homepage":"http://mvno.github.io/Franz/","size":636,"stargazers_count":0,"watchers_count":0,"language":"F#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mvno/Franz/pulls/38"},"html":{"href":"https://github.com/mvno/Franz/pull/38"},"issue":{"href":"https://api.github.com/repos/mvno/Franz/issues/38"},"comments":{"href":"https://api.github.com/repos/mvno/Franz/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/mvno/Franz/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/mvno/Franz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mvno/Franz/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/mvno/Franz/statuses/ef4c334bb9ef948d7611e486b4892a86e343b4d3"}}}}