Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-4044

log actual socket send/receive buffer size after connecting in Selector

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.10.1.0
    • None

    Description

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

      Attachments

        Issue Links

          Activity

            People

              omkreddy Manikumar
              junrao Jun Rao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: