From d098e0527a88330d28a15f77f4fbedf1f7ac6f59 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Fri, 30 Aug 2024 14:18:00 +1000 Subject: [PATCH] additional debug --- tcp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tcp.c b/tcp.c index 7b3376f..72c8a94 100644 --- a/tcp.c +++ b/tcp.c @@ -2221,6 +2221,12 @@ void tcp_sock_handler(struct ctx *c, union epoll_ref ref, uint32_t events) ASSERT(!c->no_tcp); ASSERT(pif_at_sidx(ref.flowside) != PIF_TAP); + if (events & EPOLLRDHUP) { + flow_err(conn, "EPOLLRDHUP: events=0x%x conn->events=0x%x " + "conn->flags=0x%x\n", events, conn->events, + conn->flags); + } + if (conn->events == CLOSED) return;