Commit 56553255 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use VTCP_Check() when expecting close.

parent 319497d6
......@@ -1064,7 +1064,7 @@ cmd_http_expect_close(CMD_ARGS)
"Expected close: poll = %d, revents = 0x%x",
i, fds[0].revents);
i = read(hp->fd, &c, 1);
if (i == 0)
if (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