You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Mark Hammond (JIRA)" <ji...@apache.org> on 2009/12/01 07:21:20 UTC

[jira] Created: (COUCHDB-587) provide peer port information to externals

provide peer port information to externals
------------------------------------------

                 Key: COUCHDB-587
                 URL: https://issues.apache.org/jira/browse/COUCHDB-587
             Project: CouchDB
          Issue Type: New Feature
            Reporter: Mark Hammond


When requests are made to an external, couch DB provides a 'peer' item in the request info with the address of the couchdb instance (eg, 127.0.0.1).  CouchDB should also provide the port on this address, so externals can reliably make requests back to couch.

The comments in COUCHDB-393 imply this might not be trivial.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-587) provide peer port information to externals

Posted by "Mark Hammond (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12784083#action_12784083 ] 

Mark Hammond commented on COUCHDB-587:
--------------------------------------

Oh sorry - I misunderstood the comments in 393 to imply couchdb doesn't actually *know* the port anywhere convenient.

> provide peer port information to externals
> ------------------------------------------
>
>                 Key: COUCHDB-587
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-587
>             Project: CouchDB
>          Issue Type: New Feature
>            Reporter: Mark Hammond
>
> When requests are made to an external, couch DB provides a 'peer' item in the request info with the address of the couchdb instance (eg, 127.0.0.1).  CouchDB should also provide the port on this address, so externals can reliably make requests back to couch.
> The comments in COUCHDB-393 imply this might not be trivial.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-587) provide peer port information to externals

Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12784082#action_12784082 ] 

Paul Joseph Davis commented on COUCHDB-587:
-------------------------------------------

I think the "external script" refernece in COUCHDB-393 is misleading. That was meant as "a script not under CouchDB's control." Passing port info along to the _external handlers should be cake. There should be an example of grabbing that port info in couch_httpd.erl somewhere after the loop starts as it writes that to the log.

Also 393 would've been trivial had a -S option not been vetoed.

> provide peer port information to externals
> ------------------------------------------
>
>                 Key: COUCHDB-587
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-587
>             Project: CouchDB
>          Issue Type: New Feature
>            Reporter: Mark Hammond
>
> When requests are made to an external, couch DB provides a 'peer' item in the request info with the address of the couchdb instance (eg, 127.0.0.1).  CouchDB should also provide the port on this address, so externals can reliably make requests back to couch.
> The comments in COUCHDB-393 imply this might not be trivial.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-587) provide peer port information to externals

Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Joseph Davis updated COUCHDB-587:
--------------------------------------

    Skill Level: New Contributors Level (Easy)

> provide peer port information to externals
> ------------------------------------------
>
>                 Key: COUCHDB-587
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-587
>             Project: CouchDB
>          Issue Type: New Feature
>            Reporter: Mark Hammond
>
> When requests are made to an external, couch DB provides a 'peer' item in the request info with the address of the couchdb instance (eg, 127.0.0.1).  CouchDB should also provide the port on this address, so externals can reliably make requests back to couch.
> The comments in COUCHDB-393 imply this might not be trivial.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.