Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-660

Logs too noisy on NIOServerFactory when client drops a connection

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.2
    • Component/s: None
    • Labels:
      None

      Description

      When a client drops a connection, the server throws an exception. It should only log at info level and close the socket.

          if (k.isReadable()) {
              int rc = sock.read(incomingBuffer);
              if (rc < 0) {
                  throw new IOException("Read error");
              }
              if (incomingBuffer.remaining() == 0) {
      

        Attachments

        1. BOOKKEEPER-660.diff
          0.9 kB
          Matteo Merli

          Activity

            People

            • Assignee:
              mmerli Matteo Merli
              Reporter:
              ikelly Ivan Kelly
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: