Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-3318

bypass couch_httpd_vhost if there are none

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: None
    • Labels:
      None

      Description

      all http requests call couch_httpd_vhost (a gen_server:call) on all requests. On hosts that have no virtual hosts this is a waste of time and can lead to request failures if the gen_server doesn't respond within the default timeout of five seconds.

      Find an efficient way to avoid the gen_server call on hosts with no configured virtual hosts.

        Issue Links

          Activity

          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user rnewson opened a pull request:

          https://github.com/apache/couchdb-couch/pull/232

          Efficiently bypass vhost handling if there are none

          COUCHDB-3318

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/cloudant/couchdb-couch 3318-bypass-vhosts

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/couchdb-couch/pull/232.patch

          To close this pull request, make a commit to your master/trunk branch
          with (at least) the following in the commit message:

          This closes #232


          commit f706bb87be71006875c2fbaed3a14a18c79396f8
          Author: Robert Newson <rnewson@apache.org>
          Date: 2017-03-06T12:05:33Z

          Efficiently bypass vhost handling if there are none

          COUCHDB-3318


          Show
          githubbot ASF GitHub Bot added a comment - GitHub user rnewson opened a pull request: https://github.com/apache/couchdb-couch/pull/232 Efficiently bypass vhost handling if there are none COUCHDB-3318 You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloudant/couchdb-couch 3318-bypass-vhosts Alternatively you can review and apply these changes as the patch at: https://github.com/apache/couchdb-couch/pull/232.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #232 commit f706bb87be71006875c2fbaed3a14a18c79396f8 Author: Robert Newson <rnewson@apache.org> Date: 2017-03-06T12:05:33Z Efficiently bypass vhost handling if there are none COUCHDB-3318
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit f706bb87be71006875c2fbaed3a14a18c79396f8 in couchdb-couch's branch refs/heads/master from Robert Newson
          [ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=f706bb8 ]

          Efficiently bypass vhost handling if there are none

          COUCHDB-3318

          Show
          jira-bot ASF subversion and git services added a comment - Commit f706bb87be71006875c2fbaed3a14a18c79396f8 in couchdb-couch's branch refs/heads/master from Robert Newson [ https://git-wip-us.apache.org/repos/asf?p=couchdb-couch.git;h=f706bb8 ] Efficiently bypass vhost handling if there are none COUCHDB-3318
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user asfgit closed the pull request at:

          https://github.com/apache/couchdb-couch/pull/232

          Show
          githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/couchdb-couch/pull/232

            People

            • Assignee:
              Unassigned
              Reporter:
              rnewson Robert Newson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development