diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-12 20:20:52 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-12 20:20:52 +0000 |
commit | f3eaeb99a3e3f11d3227778f4a0191c923df992b (patch) | |
tree | a9fed8c6e04bffc5d2649f71568099403af69978 /src/or/rendservice.c | |
parent | dc94b1a226c21b5ac337d79f51bc10cd91b42e04 (diff) | |
download | tor-f3eaeb99a3e3f11d3227778f4a0191c923df992b.tar.gz tor-f3eaeb99a3e3f11d3227778f4a0191c923df992b.zip |
r18051@catbus: nickm | 2008-02-12 15:20:43 -0500
Re-tune mempool parametes based on testing on peacetime: use smaller chuncks, free them a little more aggressively, and try very hard to concentrate allocations on fuller chunks. Also, lots of new documentation.
svn:r13484
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 9a18ee7258..2891fc1e72 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -42,26 +42,30 @@ typedef struct rend_service_port_config_t { /** Represents a single hidden service running at this OP. */ typedef struct rend_service_t { - /** Fields specified in config file */ + /* Fields specified in config file */ char *directory; /**< where in the filesystem it stores it */ smartlist_t *ports; /**< List of rend_service_port_config_t */ char *intro_prefer_nodes; /**< comma-separated list of nicknames */ char *intro_exclude_nodes; /**< comma-separated list of nicknames */ + int descriptor_version; /**< Rendezvous descriptor version that will be + * published. */ /* Other fields */ - /* DOCDOC All of these fields */ - crypto_pk_env_t *private_key; - char service_id[REND_SERVICE_ID_LEN_BASE32+1]; - char pk_digest[DIGEST_LEN]; + crypto_pk_env_t *private_key; /**< Permanent hidden-service key. */ + char service_id[REND_SERVICE_ID_LEN_BASE32+1]; /**< Onion address without + * '.onion' */ + char pk_digest[DIGEST_LEN]; /**< Hash of permanent hidden-service key. */ smartlist_t *intro_nodes; /**< List of rend_intro_point_t's we have, * or are trying to establish. */ - time_t intro_period_started; + time_t intro_period_started; /**< Start of the current period to build + * introduction points. */ int n_intro_circuits_launched; /**< count of intro circuits we have * established in this period. */ - rend_service_descriptor_t *desc; - time_t desc_is_dirty; - time_t next_upload_time; - int descriptor_version; /**< Rendezvous descriptor version that will be - * published. */ + rend_service_descriptor_t *desc; /**< Current hidden service descriptor. */ + time_t desc_is_dirty; /**< Time at which changes to the hidden service + * descriptor content occurred, or 0 if it's + * up-to-date. */ + time_t next_upload_time; /**< Scheduled next hidden service descriptor + * upload time. */ } rend_service_t; /** A list of rend_service_t's for services run on this OP. |