anchor.diff:  -include("basho_bench.hrl").
   
   -record(url, {host, port}).
  --record(state, { client_id }).
  +-record(state, { client_id,
  +                 hosts}).
   
   %% ====================================================================
   %% API
  
positive.code: 
  %% This is ripped from basho_bench_driver_http_raw.erl
  connect(Url) ->
      case erlang:get({ibrowse_pid, Url#url.host}) of
          undefined ->
              {ok, Pid} = ibrowse_http_client:start({Url#url.host, Url#url.port}),
              erlang:put({ibrowse_pid, Url#url.host}, Pid),
              Pid;
          Pid ->
              case is_process_alive(Pid) of
                  true ->
                      Pid;
                  false ->
                      erlang:erase({ibrowse_pid, Url#url.host}),
                      connect(Url)
              end
      end.
  
negative.code: 
  %% This is ripped from basho_bench_driver_http_raw.erl
  disconnect(Url) ->
      case erlang:get({ibrowse_pid, Url}) of
          undefined ->
              ok;
          OldPid ->
              catch(ibrowse_http_client:stop(OldPid))
      end,
      erlang:erase({ibrowse_pid, Url}),
      ok.
  