anchor.diff:  
   handle_info({ssl_closed, SslSocket}
              , State = #state{in_socket = SslSocket
  -                           ,connection= Connection
  +                           , connection= Connection
                              , info_logger_fun = InfoLoggerFun
                              , name = Name
                              }) ->
  
positive.code:       Payload = build_payload(Msg),
        BinToken = hexstr_to_bin(Msg#apns_msg.device_token),
        apns_queue:in(State#state.queue, Msg),
        case send_payload(State, Msg#apns_msg.id, Msg#apns_msg.expiry, BinToken, Payload, Msg#apns_msg.priority) of
          ok ->
            {noreply, State#state{out_expires = Timeout}};
        {error, Reason} ->
  
negative.code:     InfoLoggerFun("[ ~p ] Reconnecting to APNS...",[Name]),
      Timeout = epoch() + Connection#apns_connection.expires_conn,
      case open_out(Connection) of
        {ok, Socket} -> handle_cast(Msg,
                                    State#state{out_socket=Socket
                                               , out_expires = Timeout});
        {error, Reason} -> {stop, Reason}
      end
    catch
  