couchdb-dev mailing list archives

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


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
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|].
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:
>             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 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:

View raw message