Skip to content

Commit b30b535

Browse files
committed
In probes treat a poll timeout as a recv error
1 parent 60ea793 commit b30b535

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/varnishd/cache/cache_backend_probe.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ vbp_poke(struct vbp_target *vt)
271271
if (tmo > 0)
272272
i = poll(pfd, 1, tmo);
273273
if (i == 0 || tmo <= 0) {
274+
if (i == 0)
275+
vt->err_recv |= 1;
274276
VTCP_close(&s);
275277
return;
276278
}

0 commit comments

Comments
 (0)