diff options
Diffstat (limited to 'util/module.h')
| -rw-r--r-- | util/module.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/module.h b/util/module.h index 33068a71ce6e..013c65b02dcf 100644 --- a/util/module.h +++ b/util/module.h @@ -665,6 +665,12 @@ struct module_qstate { int need_refetch; /** whether the query (or a subquery) was ratelimited */ int was_ratelimited; + /** time when query was started. This is when the qstate is created. + * This is used so that type NS data cannot be overwritten by them + * expiring while the lookup is in progress, using data fetched from + * those servers. By comparing expiry time with qstarttime for type NS. + */ + time_t qstarttime; /** * Attributes of clients that share the qstate that may affect IP-based |
