entry_connection_t *conn,
node_t *node,
const tor_addr_t *addr);
++#if 0
+static int get_max_middle_cells(void);
++#endif
/** Stop reading on edge connections when we have this many cells
* waiting on the appropriate queue. */
return n_flushed;
}
++#if 0
+/** Indicate the current preferred cap for middle circuits; zero disables
+ * the cap. Right now it's just a constant, ORCIRC_MAX_MIDDLE_CELLS, but
+ * the logic in append_cell_to_circuit_queue() is written to be correct
+ * if we want to base it on a consensus param or something that might change
+ * in the future.
+ */
+static int
+get_max_middle_cells(void)
+{
+ return ORCIRC_MAX_MIDDLE_CELLS;
+}
++#endif
+
/** Add <b>cell</b> to the queue of <b>circ</b> writing to <b>chan</b>
* transmitting in <b>direction</b>. */
void
or_circuit_t *orcirc = NULL;
cell_queue_t *queue;
int streams_blocked;
++#if 0
+ uint32_t tgt_max_middle_cells, p_len, n_len, tmp, hard_max_middle_cells;
++#endif
if (circ->marked_for_close)
return;
}
}
}
+ #endif
- cell_queue_append_packed_copy(queue, cell, chan->wide_circ_ids);
+ cell_queue_append_packed_copy(queue, cell, chan->wide_circ_ids, 1);
/* If we have too many cells on the circuit, we should stop reading from
* the edge streams for a while. */