The Wayback Machine - https://web.archive.org/web/20211205202737/https://github.com/google/gvisor/issues/6015
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POLLRDHUP not delivered #6015

Open
iyermi opened this issue May 17, 2021 · 0 comments
Open

POLLRDHUP not delivered #6015

iyermi opened this issue May 17, 2021 · 0 comments

Comments

@iyermi
Copy link
Contributor

@iyermi iyermi commented May 17, 2021

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment