chernyih commented on PR #12131:
URL: https://github.com/apache/kafka/pull/12131#issuecomment-1123948985

   Do you think the following comments help to clear things up? If yes, I can 
add the comments to `checkingApiVersions` function. 
           // At this state, the connection setup might not have completed yet. 
Consider the case where
           // client sets the security protocol as PLAINTEXT and the server 
security protocol is SSL.
           // Client considers the connection setup has completed at this 
state, whereas in reality
           // the connection setup has not completed yet. When API version 
request is sent, disconnect will
           // happen. Reconnect backoff is not reset to prevent fast reconnect. 
It will be reset after the API
           // version request succeeds. Connection setup timeout is reset 
because from client perspective, 
           // the connection setup has completed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to