Commit 40c3adb2 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a couple of XXX comments


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1072 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent fa8e190f
......@@ -303,6 +303,13 @@ cnt_first(struct sess *sp)
{
int i;
/*
* XXX: If we don't have acceptfilters we are somewhat subject
* XXX: to DoS'ing here. One remedy would be to set a shorter
* XXX: SO_RCVTIMEO and once we have received something here
* XXX: increase it to the normal value.
*/
assert(sp->xid == 0);
VCA_Prep(sp);
sp->wrk->idle = sp->t_open.tv_sec;
......
......@@ -275,6 +275,12 @@ WRK_QueueSession(struct sess *sp)
UNLOCK(&qp->mtx);
LOCK(&tmtx);
/*
* XXX: If there are too many requests in the overflow queue
* XXX: we should kill the request right here.
* XXX: Not sure how though. Simply closing may be the better
* XXX: compromise.
*/
TAILQ_INSERT_TAIL(&overflow, &sp->workreq, list);
VSL_stats->n_wrk_overflow++;
VSL_stats->n_wrk_queue++;
......
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