akhileshchg commented on code in PR #21740:
URL: https://github.com/apache/kafka/pull/21740#discussion_r2932504622


##########
core/src/main/scala/kafka/network/SocketServer.scala:
##########
@@ -1014,14 +1016,15 @@ private[kafka] class Processor(
                 // be sure to decrease connection count and drop any in-flight 
responses
                 debug(s"Disconnecting expired channel: $channel : $header")
                 close(channel.id)
+                receive.close() // return buffer to memory pool

Review Comment:
   Nit: This is not a invalid request scenario. Can you fix the PR description?



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

Reply via email to