Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1863

SseEventSourceImpl should not close http engine

XMLWordPrintable

      Invoking close() method on an org.jboss.resteasy.plugins.providers.sse.client.SseEventSourceImpl instance
      should not close the javax.ws.rs.client.Client instance bounded to the Sse javax.ws.rs.client.WebTarget provided by the user.

      Suppose that as advised by the spec a user decide to create only one javax.ws.rs.client.Client instance for its whole application using
      connection poooling feature provided by HttpClient for example. Then if he decides to consume a Sse stream using org.jboss.resteasy.plugins.providers.sse.client.SseEventSourceImpl
      once he will invoke SseEventSourceImpl.close() its Client instance will be closed too and not usable any longer by its application.

            rhn-engineering-ema Jim Ma
            nicones Nicolas NESMON
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: