[ 
https://issues.apache.org/jira/browse/KAFKA-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17285212#comment-17285212
 ] 

Tim Fox commented on KAFKA-3702:
--------------------------------

Maybe I am missing something but writing to the connection (via flush) after 
closeOutbound has been called seems wrong to me.

closeOutBound cause close_notify to be sent to the peer. AIUI, you shouldn't 
wrote more data on a connection after close_notify has been sent.

When the peer receives the close_notify it might close the connection. If we 
then continue to send more data it's likely that we might receive "connection 
reset by peer" or similar as the connection will already have been closed (I 
believe this is what we see).

 

> 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)

Reply via email to