Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-5065

PLLClient should call getErrorStream() to get response body on IOException.

    Details

    • Support Ticket IDs:

      Description

      In PLLClient.send() refactor to call getErrorStream() as suggested in following link

      https://docs.oracle.com/javase/6/docs/technotes/guides/net/http-keepalive.html

      When calling getInputStream() from HttpURLConnection, if an IOException occurs, catch the exception and call getErrorStream() to get the response body (if there is any)
      

      With Keep-Alive connections you should not abandon a connection by ignoring the response body. Doing so may results in idle TCP connections.

        Attachments

          Activity

            People

            • Assignee:
              jonthomas Jonathan Thomas
              Reporter:
              jonthomas Jonathan Thomas
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: