Commit 5c0be22a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use the regular timeout when waiting for a close

parent 1c09b7b0
......@@ -1164,7 +1164,7 @@ cmd_http_expect_close(CMD_ARGS)
fds[0].fd = hp->fd;
fds[0].events = POLLIN | POLLERR;
fds[0].revents = 0;
i = poll(fds, 1, 1000);
i = poll(fds, 1, hp->timeout);
if (i == 0)
vtc_log(vl, hp->fatal, "Expected close: timeout");
if (i != 1 || !(fds[0].revents & POLLIN))
......
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