From: Ian Jackson Date: Tue, 13 May 2014 20:17:20 +0000 (+0100) Subject: site: Explicitly track name resolution status X-Git-Tag: debian/0.3.2_beta1~6 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/secnet/commitdiff_plain/5c19b79c7c817a28a1582970b2685c98e05b2de5?hp=5c19b79c7c817a28a1582970b2685c98e05b2de5 site: Explicitly track name resolution status Introduce a new variable st->resolving which tracks whether we have an outstanding name resolution request. This makes it safe to (try to) start name resolution (via the new function ensure_resolving) multiple times etc. No resulting functional change from just this patch. Signed-off-by: Ian Jackson --- Changes in v2: * Do slightly complicated dance with st->resolving, which is needed because of the reentrancy hazard posted by resolver->request. In v1 of the series there was a bug here which could cause the site state machine to lock up. ---