cannot Ctrl-C remote connection when network is flaky
Author: k4lizenCreated Mar 24, 2026Updated Apr 9, 2026
Labelsbugbackport-required
Description
My WiFi is flaky. The following just happened to me: Run script:
p = remote("cs412.epfl.ch", 8004)
p.interactive()
p.close()WiFi is able to provide DNS resolution, or it might be cached for me, so that passes, but the connection cannot get created, and I see looping message:
[d] Opening connection to cs412.epfl.ch on port 8004:I want to cancel since I realize what is happening, I press Ctrl-C, but it does not cancel the connection creation / process, it just keeps looping (no matter how many times I press Ctrl-C). So, I have to kill the process.
Request
I want to be able to Ctrl-C during connection creation.
Source: Gallopsled/pwntools