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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.1.0
    • Component/s: None
    • Labels:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: