You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jun Rao (JIRA)" <ji...@apache.org> on 2016/08/15 23:54:20 UTC

[jira] [Created] (KAFKA-4044) log actual socket send/receive buffer size after connecting in Selector

Jun Rao created KAFKA-4044:
------------------------------

             Summary: log actual socket send/receive buffer size after connecting in Selector
                 Key: KAFKA-4044
                 URL: https://issues.apache.org/jira/browse/KAFKA-4044
             Project: Kafka
          Issue Type: Improvement
            Reporter: Jun Rao


In BlockingChannel, we had the following code to log the actual socket buffer size when the socket connection is established. This can be helpful when tuning the socket buffer size for long latency network. It would be useful to add that in Selector.pollSelectionKeys when the socket is connected.

        val msg = "Created socket with SO_TIMEOUT = %d (requested %d), SO_RCVBUF = %d (requested %d), SO_SNDBUF = %d (requested %d), connectTimeoutMs = %d."
        debug(msg.format(channel.socket.getSoTimeout,
                         readTimeoutMs,
                         channel.socket.getReceiveBufferSize, 
                         readBufferSize,
                         channel.socket.getSendBufferSize,
                         writeBufferSize,
                         connectTimeoutMs))




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)