git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1072
d4fa192b-c00b-0410-8231-
f00ffab90ce4
{
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;
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++;