Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3430

Go THttpClient does not read HTTP response body to completion when closing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.10.0
    • Go - Library
    • None

    Description

      In THttpClient.closeResponse the body of the HTTP response is closed but the body itself is never explicitly read to completion. The go docs specify that if the response body is not read to completion and keepalive is enabled, the connection will never be returned to the pool.

      Attachments

        Activity

          People

            justinlarrabee Justin Larrabee
            justinlarrabee Justin Larrabee
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: