diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-01-04 20:05:29 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-12 13:47:52 -0500 |
commit | 3033ba9f5ec8eb4dea3e6778f6d7546cacf7ae57 (patch) | |
tree | d8ba8ccd5dee101c4da4308c2d76dbea954d50a8 /src/or/or.h | |
parent | eda5cebd6c334c3e6fa82c6623f33592a8f77e60 (diff) | |
download | tor-3033ba9f5ec8eb4dea3e6778f6d7546cacf7ae57.tar.gz tor-3033ba9f5ec8eb4dea3e6778f6d7546cacf7ae57.zip |
When OOM, free cached hidden service descriptors too.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index ee86697fd8..d97871981c 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -4939,6 +4939,8 @@ typedef struct rend_service_descriptor_t { typedef struct rend_cache_entry_t { size_t len; /**< Length of <b>desc</b> */ time_t received; /**< When was the descriptor received? */ + time_t last_served; /**< When did we last write this one to somebody? + * (HSDir only) */ char *desc; /**< Service descriptor */ rend_service_descriptor_t *parsed; /**< Parsed value of 'desc' */ } rend_cache_entry_t; |