Commit e78f18a2 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Comments with a warning I came close to forgetting



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4547 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 021458ba
......@@ -789,8 +789,8 @@ cnt_lookup(struct sess *sp)
* We lost the session to a busy object, disembark the
* worker thread. The hash code to restart the session,
* still in STP_LOOKUP, later when the busy object isn't.
* NB: Do not access sp any more !
*/
AZ(sp->wrk);
return (1);
}
......@@ -1217,6 +1217,9 @@ CNT_Session(struct sess *sp)
if (sp->step == STP_FIRST || sp->step == STP_START)
TCP_blocking(sp->fd);
/*
* NB: Once done is set, we can no longer touch sp!
*/
for (done = 0; !done; ) {
assert(sp->wrk == w);
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment