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

ResponseSubscribers.SubscriberAdapter should call the finisher function asynchronously

    XMLWordPrintable

Details

    • b18
    • Verified

    Description

      The finisher function supplied to BodySubscribers.fromSubscriber is specified to be called when onComplete() is called on the Subscriber. However, this function contains application code that may involve blocking operations. Though this is technically a user error to block in any function supplied to the HttpClient API, the ResponseSubscribers.SubscriberAdapter should protect itself against this by calling the finisher asynchronously, in the fork join pool.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: