Commit 2c27cfc3 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

save 3-7 bytes per edge connection


svn:r7044
parent 2dc9066f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -417,6 +417,7 @@ connection_ap_expire_beginning(void)
    circ->timestamp_dirty -= options->MaxCircuitDirtiness;
    /* give our stream another 'cutoff' seconds to try */
    conn->_base.timestamp_lastread += cutoff;
    if (conn->num_socks_retries < 250) /* avoid overflow */
      conn->num_socks_retries++;
    /* move it back into 'pending' state, and try to attach. */
    if (connection_ap_detach_retriable(conn, TO_ORIGIN_CIRCUIT(circ))<0) {
+1 −1
Original line number Diff line number Diff line
@@ -713,7 +713,7 @@ typedef struct edge_connection_t {
  /** Number of times we've reassigned this application connection to
   * a new circuit. We keep track because the timeout is longer if we've
   * already retried several times. */
  int num_socks_retries;
  uint8_t num_socks_retries;

  /** Nickname of planned exit node -- used with .exit support. */
  char *chosen_exit_name;