Uploaded image for project: 'Lucee Development'
  1. LDEV-371

cfhttp creates connections that don't expire until the keep-alive timeout

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: 4.5.1.015
    • Fix Version/s: 4.5.3.002
    • Labels:
      None

      Description

      While doing lots of cfhttp calls to remote resources, we are finding that the servers we are connecting to are reporting we are creating a lot of connections and not re-using them. Because HTTP 1.1 uses keep-alive by default, cfhttp is creating requests that honor the servers keep-alive timeout but cfhttp doesn't reuse the connection. It just creates new ones. I propose we set 'Connection: close' header by default for cfhttp requests. That should limit the amount of open, unused connections the system uses.

      Submitting a pull request here soon.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              colby.litnak Colby Litnak
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: