Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Make pb connect timeout configurable

  • Loading branch information...
commit c404aa11893422109eea8e7a7e9551ea5dcb77e6 1 parent ff790c2
Pavlo Baron authored

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. +7 1 src/riak_cs_riakc_pool_worker.erl
8 src/riak_cs_riakc_pool_worker.erl
@@ -45,7 +45,13 @@ riak_host_port() ->
45 45 -spec start_link(term()) -> {ok, pid()} | {error, term()}.
46 46 start_link(_Args) ->
47 47 {Host, Port} = riak_host_port(),
48   - riakc_pb_socket:start_link(Host, Port, [{connect_timeout, 10000}]).
  48 + case application:get_env(riak_cs, riakc_connect_timeout) of
  49 + {ok, Timeout} ->
  50 + ok;
  51 + undefined ->
  52 + Timeout = 10000
  53 + end,
  54 + riakc_pb_socket:start_link(Host, Port, [{connect_timeout, Timeout}]).
49 55
50 56 stop(undefined) ->
51 57 ok;

0 comments on commit c404aa1

Please sign in to comment.
Something went wrong with that request. Please try again.