Wadimz commented on code in PR #20894:
URL: https://github.com/apache/kafka/pull/20894#discussion_r2532194315
##########
core/src/main/scala/kafka/network/SocketServer.scala:
##########
@@ -1285,7 +1285,10 @@ private[kafka] class Processor(
class ConnectionQuotas(config: KafkaConfig, time: Time, metrics: Metrics)
extends Logging with AutoCloseable {
@volatile private var defaultMaxConnectionsPerIp: Int =
config.maxConnectionsPerIp
- @volatile private var maxConnectionsPerIpOverrides =
config.maxConnectionsPerIpOverrides.map { case (host, count) =>
(InetAddress.getByName(host), count) }
Review Comment:
internal implementation:
```
public static InetAddress getByName(String host) throws UnknownHostException
{
return InetAddress.getAllByName(host)[0];
}
```
--
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]