Skip to content
Browse files

Make HTTP raw request timeout configurable.

  • Loading branch information...
1 parent b3b1e8f commit c46c52601970dd77fbe9de703cdefe5f93d920d2 @seancribbs seancribbs committed Sep 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/basho_bench_driver_http_raw.erl
View
2 src/basho_bench_driver_http_raw.erl
@@ -302,7 +302,7 @@ send_request(_Url, _Headers, _Method, _Body, _Options, 0) ->
{error, max_retries};
send_request(Url, Headers, Method, Body, Options, Count) ->
Pid = connect(Url),
- case catch(ibrowse_http_client:send_req(Pid, Url, Headers, Method, Body, Options, 5000)) of
+ case catch(ibrowse_http_client:send_req(Pid, Url, Headers, Method, Body, Options, basho_bench_config:get(http_raw_request_timeout, 5000))) of
{ok, Status, RespHeaders, RespBody} ->
maybe_disconnect(Url),
{ok, Status, RespHeaders, RespBody};

0 comments on commit c46c526

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