Commit 6097d7ba authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

WS may give us more space than we ask for

parent 560de227
......@@ -364,7 +364,7 @@ vca_make_session(struct worker *wrk, void *arg)
vca_tcp_opt_set(sp->fd, 0);
/* SES_Proto_Sess() must be sceduled with reserved WS */
assert(8 == WS_Reserve(sp->ws, 8));
assert(8 <= WS_Reserve(sp->ws, 8));
wrk->task.func = SES_Proto_Sess;
wrk->task.priv = sp;
}
......
......@@ -448,7 +448,7 @@ ses_handle(struct waited *wp, enum wait_event ev, double now)
case WAITER_ACTION:
pp = sp->pool;
CHECK_OBJ_NOTNULL(pp, POOL_MAGIC);
assert(sizeof *tp == WS_Reserve(sp->ws, sizeof *tp));
assert(sizeof *tp <= WS_Reserve(sp->ws, sizeof *tp));
tp = (void*)sp->ws->f;
tp->func = SES_Proto_Sess;
tp->priv = sp;
......
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