jainamshah102 commented on code in PR #21197:
URL: https://github.com/apache/kafka/pull/21197#discussion_r2637860318
##########
core/src/main/scala/kafka/network/SocketServer.scala:
##########
@@ -731,8 +731,12 @@ private[kafka] abstract class Acceptor(val socketServer:
SocketServer,
s" sendBufferSize [actual|requested]:
[${socketChannel.socket.getSendBufferSize}|$sendBufferSize]" +
s" recvBufferSize [actual|requested]:
[${socketChannel.socket.getReceiveBufferSize}|$recvBufferSize]")
true
- } else
+ } else{
+ // connection was rejected (likely due to processor shutdown) - close
the socket.
+ val listenerName = ListenerName.normalised(endPoint.listener)
+ connectionQuotas.closeChannel(this, listenerName, socketChannel)
Review Comment:
thank you for the suggestion, have made the change
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]