r4478 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Fri Jan 22 09:25:26 CET 2010
Author: phk
Date: 2010-01-22 09:25:26 +0100 (Fri, 22 Jan 2010)
New Revision: 4478
Modified:
trunk/varnish-cache/bin/varnishd/cache_waiter_poll.c
Log:
Fix the poll-waiter after I botched it in r4445.
Fixes #625
Submitted by: slink
Modified: trunk/varnish-cache/bin/varnishd/cache_waiter_poll.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_waiter_poll.c 2010-01-21 10:26:39 UTC (rev 4477)
+++ trunk/varnish-cache/bin/varnishd/cache_waiter_poll.c 2010-01-22 08:25:26 UTC (rev 4478)
@@ -124,7 +124,7 @@
i = read(vca_pipes[0], ss, sizeof ss);
assert(i >= 0);
assert((i % sizeof ss[0]) == 0);
- for (j = 0; j * sizeof ss[0] < i; j += sizeof ss[0]) {
+ for (j = 0; j * sizeof ss[0] < i; j++) {
CHECK_OBJ_NOTNULL(ss[j], SESS_MAGIC);
VTAILQ_INSERT_TAIL(&sesshead, ss[j], list);
vca_poll(ss[j]->fd);
More information about the varnish-commit
mailing list