Github user pivotal-amurmann commented on a diff in the pull request:

    https://github.com/apache/geode/pull/657#discussion_r129689404
  
    --- Diff: 
geode-core/src/main/java/org/apache/geode/internal/tcp/ConnectionTable.java ---
    @@ -279,26 +280,29 @@ protected void acceptConnection(Socket sock) throws 
IOException, ConnectionExcep
           // in our caller.
           // no need to log error here since caller will log warning
     
    -      if (conn != null && !finishedConnecting) {
    +      if (connection != null && !finishedConnecting) {
             // we must be throwing from checkCancelInProgress so close the 
connection
    -        
closeCon(LocalizedStrings.ConnectionTable_CANCEL_AFTER_ACCEPT.toLocalizedString(),
 conn);
    -        conn = null;
    +        
closeCon(LocalizedStrings.ConnectionTable_CANCEL_AFTER_ACCEPT.toLocalizedString(),
    +            connection);
    +        connection = null;
           }
         }
     
    -    if (conn != null) {
    +    if (connection != null) {
           synchronized (this.receivers) {
    -        this.owner.stats.incReceivers();
    +        this.owner.getStats().incReceivers();
             if (this.closed) {
               
closeCon(LocalizedStrings.ConnectionTable_CONNECTION_TABLE_NO_LONGER_IN_USE
    -              .toLocalizedString(), conn);
    +              .toLocalizedString(), connection);
               return;
             }
    -        this.receivers.add(conn);
    +        if (!connection.isSocketClosed()) {
    --- End diff --
    
    Maybe once this gets squashed into a single commit the explanation can be 
added to the commit message to be preserved with the code? It's always awesome 
to do a `git annotate` and get a great explanation


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to