Skip to content

Commit

Permalink
Bump ibrowse to 4.4.2 + couchdb patches
Browse files Browse the repository at this point in the history
Set the `worker_trap_exits = false` setting to ensure our replication worker
pool properly cleans up worker processes.

Ref: #3208
  • Loading branch information
nickva committed May 10, 2021
1 parent a2afe79 commit 7b85048
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rebar.config.script
Expand Up @@ -159,7 +159,7 @@ DepDescs = [
%% Third party deps
{folsom, "folsom", {tag, "CouchDB-0.8.3"}},
{hyper, "hyper", {tag, "CouchDB-2.2.0-6"}},
{ibrowse, "ibrowse", {tag, "CouchDB-4.0.1-1"}},
{ibrowse, "ibrowse", {tag, "CouchDB-4.4.2-2"}},
{jiffy, "jiffy", {tag, "CouchDB-1.0.5-1"}},
{mochiweb, "mochiweb", {tag, "v2.20.0"}},
{meck, "meck", {tag, "0.8.8"}},
Expand Down
5 changes: 4 additions & 1 deletion src/couch_replicator/src/couch_replicator_connection.erl
Expand Up @@ -72,7 +72,10 @@ init([]) ->
Interval = config:get_integer("replicator", "connection_close_interval",
?DEFAULT_CLOSE_INTERVAL),
Timer = erlang:send_after(Interval, self(), close_idle_connections),
ibrowse:add_config([{inactivity_timeout, Interval}]),
ibrowse:add_config([
{inactivity_timeout, Interval},
{worker_trap_exits, false}
]),
{ok, #state{close_interval=Interval, timer=Timer}}.

acquire(Url) ->
Expand Down

0 comments on commit 7b85048

Please sign in to comment.