Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-785

Half-duplex close of TCP channel

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-M6
    • 2.0.8
    • Transport
    • None

    Description

      Current MINA implementation doesn't support half-duplex close as described in RFC-793 section 3.5. "Closing a Connection".

      After the read in AbstractPollingIoProcessor#read() fails due to closed of the input stream whole NioSocketSession#channel is scheduled to close. In such situation only the input part should be closed with call to SocketChannel#socket().shutdownInput(). The whole channel should be closed only after the IoSession#close() call.

      Attachments

        1. patch-asyncweb-2.0.0-r942061.diff
          3 kB
          Jan Tauš
        2. patch-mina-2.0.0-RC1.diff
          12 kB
          Jan Tauš

        Activity

          People

            Unassigned Unassigned
            jtau8042 Jan Tauš
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: