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

[testlibrary] rmi TestSocketFactory does not flush

XMLWordPrintable

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

        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.

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

                Created:
                Updated:
                Resolved: