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

Logs too noisy on NIOServerFactory when client drops a connection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.2.0
    • 4.2.2
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: