[ https://issues.apache.org/jira/browse/KAFKA-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17285216#comment-17285216 ]
Tim Fox commented on KAFKA-3702: -------------------------------- >> A possible issue (identified by [~david.mao]) is that we don't check if >>`isOutboundDone` is true in the `close` method. Yes, I think this is also an issue (perhaps a separate one). According to the SSLEngine javadoc, wrap() or isOutboundDone() should be called _repeatedly_ until it returns CLOSED/true. Currently we only call it once and assume it will immediately return with CLOSED/true. > SslTransportLayer.close() does not shutdown gracefully > ------------------------------------------------------ > > Key: KAFKA-3702 > URL: https://issues.apache.org/jira/browse/KAFKA-3702 > Project: Kafka > Issue Type: Bug > Affects Versions: 0.10.0.0 > Reporter: Rajini Sivaram > Assignee: Rajini Sivaram > Priority: Major > > The warning "Failed to send SSL Close message" occurs very frequently when > SSL connections are closed. Close should write outbound data and shutdown > gracefully. -- This message was sent by Atlassian Jira (v8.3.4#803005)