The Wayback Machine - https://web.archive.org/web/20211205202737/https://github.com/google/gvisor/issues/6015
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
We do not see the stack notifying POLLRDHUP on receiving FIN.
The following test timesout the poll:
ASSERT_THAT(shutdown(accepted.get(), SHUT_WR), SyscallSucceeds());
struct pollfd pfd = {
.fd = conn_fd.get(),
.events = POLLRDHUP,
};
constexpr int kTimeout = 10000;
int n = poll(&pfd, 1, kTimeout);
ASSERT_GE(n, 0) << strerror(errno);
ASSERT_EQ(n, 1);
ASSERT_EQ(pfd.revents, POLLRDHUP);
The text was updated successfully, but these errors were encountered: