Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8185719

[testlibrary] rmi TestSocketFactory does not flush

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 10
    • 9
    • core-libs
    • None
    • b18

    Backports

      Description

        The test/java/rmi/testlibrary/TestSocketFactory MatchReplaceOutputStream does not support flush.

        In the case where a partial match is being recognized, those bytes have not been sent to the output stream or log. If the writer calls flush, the partial match is not flushed. It may cause a client reading the stream to hang waiting for the missing bytes.

        MatchReplaceOutputStream should support flush by writing the partial match and reset the match to start again.

        Match/replace across a flush is not needed and not supported.

        Attachments

          Issue Links

            Activity

              People

                rriggs Roger Riggs
                rriggs Roger Riggs
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: