anchor.diff:                                  Reason),
               log:log(error,"[ CC ~p ] couldn't send to ~.0p:~.0p (~.0p). closing connection",
                       [self(), Address, Port, Reason]),
  -            close_connection(Socket, State)
  +            close_connection(Socket, set_number_of_timeouts(State, 0))
       end.
   
   -spec new_connection(inet:ip_address(), comm_server:tcp_port(),
  
positive.code:      _StartTime = os:timestamp(), _SentMsgCount = 0, _ReceivedMsgCount = 0,
       _MsgQueue = {[], []}, _Len = 0,
       _DesiredBundleSize = 0, _MsgsSinceBundleStart = 0,
       _LastStatReport = {0, 0, 0, 0} }.
  
  -spec dest_ip(state()) -> inet:ip_address().
  dest_ip(State)                 -> element(1, State).
  
negative.code: last_stat_report(State)          -> element(13, State).
  -spec set_last_stat_report(state(), stat_report()) -> state().
  set_last_stat_report(State, Val) -> setelement(13, State, Val).
  
  -spec number_of_timeouts(state()) -> non_neg_integer().
  number_of_timeouts(State) -> element(14, State).
  -spec set_number_of_timeouts(state(), non_neg_integer()) -> state().
  set_number_of_timeouts(State, N) -> setelement(14, State, N).
  
  -spec status(State::state()) -> notconnected | connected.
  status(State) ->
  