Open t4lz opened 1 year ago
@t4lz Do we know of a real life scenario where this happens?
@t4lz Do we know of a real life scenario where this happens?
There is the close_socket_keep_connection
test that runs an application constructed to trigger this issue, but we don't know of a natural application in the wild that has this issue.
Bug Description
When the user application closes a listening socket, existing connected sockets accepted from that socket should continue.
However, once the agent receives a
PortUnsubscribe
it removes the iptables redirect, which interrupts existing connections.This means for example that you cannot successfully run with mirrord on steal mode an application that listens on a socket, accepts one connection, and then closes the listening socket but keeps the connection.
Steps to Reproduce
Backtrace
No response
Relevant Logs
No response
Your operating system and version
macOS 13.4
Local process
python3
Local process version
No response
Additional Info
No response