Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-34

ChannelPipedInputStream/ChannelPipedOutputStream doesn't handle EOF correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.2.0
    • None

    Description

      Consider the following invocation sequence:

      1. writer writes a lot of bytes
      2. writer closes the OutputStream
      3. reader comes in and starts reading
      4. it reaches EOF
      5. reader closes InputStream

      The current implementation doesn't distinguish #2 above with InputStream.close(), so in this call sequence, the reader incorrectly gets IOException("Pipe closed") instead of successfully reading data.

      Attachments

        1. SSHD-34.diff
          3 kB
          Kohsuke Kawaguchi

        Activity

          People

            gnodet Guillaume Nodet
            kohsuke Kohsuke Kawaguchi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: