couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian J Ewing (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-907) Support multiple ip addresses in bind_address
Date Wed, 11 Sep 2013 16:27:53 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13764456#comment-13764456
] 

Brian J Ewing commented on COUCHDB-907:
---------------------------------------

So I had a look at this as an issue that looked self-contained enough for someone new to look
at.
But turns out it's not as trivial as I thought.

AFAICS, mochiweb doesn't support binding the same server to multiple addresses.
It could be achieved by making multiple calls to _mochiweb:start_, re-using the _Loop_ handler,
see [couch_httpd.erl:155|https://github.com/apache/couchdb/blob/master/src/couchdb/couch_httpd.erl#L155].
I'll leave it to someone else to decide if this is a good idea.

The trouble is that mochiweb takes a name for each server (currently atom _couch_httpd_) and
to stop, we'd need to call _mochiweb:start_ and later _mochiweb:stop_ with a name for each
bound address.

Way forward looks to be either:-
1. Work upstream and add multiple address support to mochiweb
2. Just start multiple mochiweb daemons. Each bound address would have its own daemon, this
might have its own benefits(*_?_*)
3. Mark this ticket as won't fix, it doesn't seem like an essential feature anyway.
                
> Support multiple ip addresses in bind_address
> ---------------------------------------------
>
>                 Key: COUCHDB-907
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-907
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>            Reporter: Mathias Gug
>
> It would be useful to be able to configure couchdb to listen to multiple ip addresses
in addition to one and all interfaces.
> See http://comments.gmane.org/gmane.comp.db.couchdb.user/7050 for such a request.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message