Github user anmolnar commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/184#discussion_r194372536
  
    --- Diff: src/java/main/org/apache/zookeeper/server/quorum/Learner.java ---
    @@ -292,8 +298,20 @@ protected void connectToLeader(InetSocketAddress addr, 
String hostname)
                     sock.getInputStream()));
             bufferedOutput = new BufferedOutputStream(sock.getOutputStream());
             leaderOs = BinaryOutputArchive.getArchive(bufferedOutput);
    -    }   
    -    
    +    }
    +
    +    private void createSocket() throws X509Exception, IOException {
    --- End diff --
    
    This is also done. Would you please elaborate a little bit on what are the 
benefits?


---

Reply via email to