diff options
author | Roger Dingledine <arma@torproject.org> | 2005-10-29 19:13:48 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-10-29 19:13:48 +0000 |
commit | 44b3f3060a863a9297fdbe722bd7bf8c00e70653 (patch) | |
tree | 788a754468f090ce105ccdd897774d3a0c1703fe /src/or/or.h | |
parent | bf2be9abd75c2057e2f8f75c0480c2699c6299a5 (diff) | |
download | tor-44b3f3060a863a9297fdbe722bd7bf8c00e70653.tar.gz tor-44b3f3060a863a9297fdbe722bd7bf8c00e70653.zip |
make circ->onionskin a pointer, not a static array. moria2 was using
125000 circuit_t's after it had been up for a few weeks, which translates
to 20+ megs of wasted space.
svn:r5333
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h index 535bfc2600..8386b53bb6 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1068,8 +1068,11 @@ struct circuit_t { */ crypt_path_t *cpath; - /** For storage while passing to cpuworker, or while n_conn is pending. */ - char onionskin[ONIONSKIN_CHALLENGE_LEN]; + /** For storage while passing to cpuworker (state + * CIRCUIT_STATE_ONIONSKIN_PENDING), or while n_conn is pending + * (state CIRCUIT_STATE_OR_WAIT). When defined, it is always + * length ONIONSKIN_CHALLENGE_LEN. */ + char *onionskin; char handshake_digest[DIGEST_LEN]; /**< Stores KH for intermediate hops. */ |