aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2025-01-16 20:31:35 +0100
committerStefano Brivio <sbrivio@redhat.com>2025-01-16 21:15:33 +0100
commit22cf08ba00890c83922c61f5d65803b7f4c1299a (patch)
tree7380cbc3578f0dd22f8657f2c774f231049fa819
parent707f77b0a93160c8695b3cf5bfd7c24d9992b106 (diff)
downloadpasst-22cf08ba00890c83922c61f5d65803b7f4c1299a.tar
passt-22cf08ba00890c83922c61f5d65803b7f4c1299a.tar.gz
passt-22cf08ba00890c83922c61f5d65803b7f4c1299a.tar.bz2
passt-22cf08ba00890c83922c61f5d65803b7f4c1299a.tar.lz
passt-22cf08ba00890c83922c61f5d65803b7f4c1299a.tar.xz
passt-22cf08ba00890c83922c61f5d65803b7f4c1299a.tar.zst
passt-22cf08ba00890c83922c61f5d65803b7f4c1299a.zip
tcp: Don't subscribe to EPOLLOUT events on STALLED
I inadvertently added that in an unrelated change, but it doesn't make sense: STALLED means we have pending socket data that we can't write to the guest, not the other way around. Fixes: bb708111833e ("treewide: Packet abstraction with mandatory boundary checks") Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcp.c b/tcp.c
index 72fca63..ef33388 100644
--- a/tcp.c
+++ b/tcp.c
@@ -437,7 +437,7 @@ static uint32_t tcp_conn_epoll_events(uint8_t events, uint8_t conn_flags)
return EPOLLET;
if (conn_flags & STALLED)
- return EPOLLIN | EPOLLOUT | EPOLLRDHUP | EPOLLET;
+ return EPOLLIN | EPOLLRDHUP | EPOLLET;
return EPOLLIN | EPOLLRDHUP;
}