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

[testlibrary] rmi TestSocketFactory does not flush

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      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

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: