anchor.diff:                  false ->
                       Buf
               end;
  -        false ->
  +        false -> % we don't resize if we never connected
               Buf
       end,
       %% We hibernate only when we need to reconnect with a timer. The timer
  
positive.code:                   "state=disconnected at=connect try=~p sock=~p",
                    log_info(State, [Failures + 1, Sock])),
              NewBuf = case logplex_msg_buffer:len(Buf) =:= ?SHRINK_BUF_SIZE of
                          true -> logplex_msg_buffer:resize(?DEFAULT_BUF_SIZE, Buf);
                          false -> Buf
                      end,
              NewState = State#state{sock=Sock,
  
negative.code: -define(HIBERNATE_TIMEOUT, 5000).
  -define(SHRINK_TIMEOUT, timer:minutes(5)).
  -define(SHRINK_BUF_SIZE, 10).
  
  
  -include("logplex.hrl").
  -include("logplex_logging.hrl").
  