mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
save 3-7 bytes per edge connection
svn:r7044
This commit is contained in:
parent
2dc9066f7a
commit
2c27cfc38e
@ -417,7 +417,8 @@ connection_ap_expire_beginning(void)
|
|||||||
circ->timestamp_dirty -= options->MaxCircuitDirtiness;
|
circ->timestamp_dirty -= options->MaxCircuitDirtiness;
|
||||||
/* give our stream another 'cutoff' seconds to try */
|
/* give our stream another 'cutoff' seconds to try */
|
||||||
conn->_base.timestamp_lastread += cutoff;
|
conn->_base.timestamp_lastread += cutoff;
|
||||||
conn->num_socks_retries++;
|
if (conn->num_socks_retries < 250) /* avoid overflow */
|
||||||
|
conn->num_socks_retries++;
|
||||||
/* move it back into 'pending' state, and try to attach. */
|
/* move it back into 'pending' state, and try to attach. */
|
||||||
if (connection_ap_detach_retriable(conn, TO_ORIGIN_CIRCUIT(circ))<0) {
|
if (connection_ap_detach_retriable(conn, TO_ORIGIN_CIRCUIT(circ))<0) {
|
||||||
connection_mark_unattached_ap(conn, END_STREAM_REASON_CANT_ATTACH);
|
connection_mark_unattached_ap(conn, END_STREAM_REASON_CANT_ATTACH);
|
||||||
|
@ -713,7 +713,7 @@ typedef struct edge_connection_t {
|
|||||||
/** Number of times we've reassigned this application connection to
|
/** Number of times we've reassigned this application connection to
|
||||||
* a new circuit. We keep track because the timeout is longer if we've
|
* a new circuit. We keep track because the timeout is longer if we've
|
||||||
* already retried several times. */
|
* already retried several times. */
|
||||||
int num_socks_retries;
|
uint8_t num_socks_retries;
|
||||||
|
|
||||||
/** Nickname of planned exit node -- used with .exit support. */
|
/** Nickname of planned exit node -- used with .exit support. */
|
||||||
char *chosen_exit_name;
|
char *chosen_exit_name;
|
||||||
|
Loading…
Reference in New Issue
Block a user