badaiaqrandista commented on code in PR #12416: URL: https://github.com/apache/kafka/pull/12416#discussion_r925034643
########## clients/src/main/java/org/apache/kafka/common/network/Selector.java: ########## @@ -652,6 +652,11 @@ void write(KafkaChannel channel) throws IOException { if (send != null) { this.completedSends.add(send); this.sensors.recordCompletedSend(nodeId, send.size(), currentTimeMs); + + // To fix KAFKA-13559, i.e. select(timeout) blocks for 300 ms when the socket has no data but the buffer + // has data. Only happens when using SSL. + if (channel.hasBytesBuffered()) + madeReadProgressLastPoll = true; Review Comment: @ijuma I have moved the fix to `pollSelectionKeys` as I mentioned before to make it less weird (hopefully). -- 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