Commit 2d3e0ba0 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Unbreak varnishtest expect_close

The change to VTCP_Check() in 58a21da7
broke expect_close in varnishtest.
parent 99251be5
......@@ -1493,7 +1493,7 @@ cmd_http_expect_close(CMD_ARGS)
"Expected close: poll = %d, revents = 0x%x",
i, fds[0].revents);
i = read(hp->sess->fd, &c, 1);
if (VTCP_Check(i))
if (i <= 0 && VTCP_Check(i))
break;
if (i == 1 && vct_islws(c))
continue;
......
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