Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8186829 HTTP Client impl - Reduce implementation execution modes
  3. JDK-8189866

SocketTube should create a new subscription for each subscriber

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • None
    • core-libs

      SocketTube currently allows multiple sequential read subscriber, but always uses the same internal subscription, which represents how the SocketTube itself is subscribed to the socket.

      In case of error, it makes it difficult to track if the error has been forwarded to the old subscriber, and whether/how it should be forwarded to the new one.

      There may be a race condition were the readScheduler is already stopped (or is in the process of being stopped) by the time the new subscriber is in the process of subscribing.

      The current behavior should be reexamined to make sure the new subscriber will always get the error in that particular case.

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: