aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-07-17 10:36:04 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-07-17 07:05:21 +0200
commit2fa91ee391b7bbed960bf404a405573c64d836aa (patch)
treed958e4017cd4bee9fd4c0a0486000e7ed76613b9 /tcp.c
parent6bd8283bf962126da73612737a5730082b70b5f3 (diff)
downloadpasst-2fa91ee391b7bbed960bf404a405573c64d836aa.tar
passt-2fa91ee391b7bbed960bf404a405573c64d836aa.tar.gz
passt-2fa91ee391b7bbed960bf404a405573c64d836aa.tar.bz2
passt-2fa91ee391b7bbed960bf404a405573c64d836aa.tar.lz
passt-2fa91ee391b7bbed960bf404a405573c64d836aa.tar.xz
passt-2fa91ee391b7bbed960bf404a405573c64d836aa.tar.zst
passt-2fa91ee391b7bbed960bf404a405573c64d836aa.zip
udp: Handle errors on UDP sockets
Currently we ignore all events other than EPOLLIN on UDP sockets. This means that if we ever receive an EPOLLERR event, we'll enter an infinite loop on epoll, because we'll never do anything to clear the error. Luckily that doesn't seem to have happened in practice, but it's certainly fragile. Furthermore changes in how we handle UDP sockets with the flow table mean we will start receiving error events. Add handling of EPOLLERR events. For now we just read the error from the error queue (thereby clearing the error state) and print a debug message. We can add more substantial handling of specific events in future if we want to. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.c')
0 files changed, 0 insertions, 0 deletions