anchor.diff:      end,
       {stop, normal, gen_reply(State, {error, Why})};
   
  -auth(timeout, State) ->
  -    {stop, normal, gen_reply(State, {error, timeout})};
  -
   auth(Other, State) ->
  -    #state{timeout = Timeout} = State,
  -    {noreply, State2} = on_message(Other, State),
  -    {noreply, State2, Timeout}.
  +    on_message(Other, State).
   
   %% BackendKeyData
   initializing({$K, <<Pid:?int32, Key:?int32>>}, State) ->
  -    #state{timeout = Timeout} = State,
       State2 = State#state{backend = {Pid, Key}},
  -    {noreply, State2, Timeout};
  -
  -initializing(timeout, State) ->
  -    {stop, normal, gen_reply(State, {error, timeout})};
  +    {noreply, State2};
   
   %% ReadyForQuery
   initializing({$Z, <<Status:8>>}, State) ->
  
positive.code:   when Error == tcp_error; Error == ssl_error ->
      {stop, {sock_error, Reason}, State};
  
  handle_info(timeout, #state{handler = Handler} = State) ->
      ?MODULE:Handler(timeout, State);
  
  handle_info({_, Sock, Data2}, #state{data = Data, sock = Sock} = State) ->
      loop(State#state{data = <<Data/binary, Data2/binary>>}, infinity).
  
  loop(#state{data = Data, handler = Handler} = State, Timeout) ->
      case pgsql_wire:decode_message(Data) of
          {Message, Tail} ->
              case ?MODULE:Handler(Message, State#state{data = Tail}) of
                  {noreply, State2} ->
                      loop(State2, infinity);
                  {noreply, State2, Timeout2} ->
                      loop(State2, Timeout2);
                  R = {stop, _Reason2, _State2} ->
                      R
              end;
          _ ->
              {noreply, State, Timeout}
      end.
  
  terminate(_Reason, _State) ->
  
negative.code: handle_call({connect, Host, Username, Password, Opts},
              From,
              #state{queue = Queue} = State) ->
      Timeout = proplists:get_value(timeout, Opts, 5000),
      Port = proplists:get_value(port, Opts, 5432),
      SockOpts = [{active, false}, {packet, raw}, binary, {nodelay, true}],
  