You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you press Ctrl+C and the process still does something, it means the exception handler does too much work, so it might mean there is some except block instead of except IOError. I will try to reproduce your issue.
It's really hard to test, or at least unreliable to test a DNS resolution failure. In the meantime I've just tried
to reproduce the issue again on my system, this time the DNS resolution succeeds.
But I still think the problem is that the socket.getaddrinfo calls get blocked until succeed/fail/timeout.
Some people reports that too:
If you truly want to reproduce the issue, you could setup a fake DNS server that does nothing
but sleeps for 1 minute. And change your system DNS address to your DNS server.
Maybe we can set SIGINT handler to SIG_DFL as a workaround?
You mean to change and restore SIGINT handler before and after resolving DNS?
If that works, I'm happy with it.
tesuji
changed the title
Script stuck (cannot ctrl-C to quit) when falling name resolution (using remote())
Script stuck (cannot ctrl-C to quit) when DNS resolution fails (using remote())
Feb 11, 2025
Debug Output
Having the extra debug output really helps us, and might help you diagnose the problem yourself.
The command is stuck around 30 seconds before quitting.
Expectaion
I would like to use ctrl-C to quit immediately in these cases.
Verify on Ubuntu
I'm using Debian Sid (Latest) if it worths mentioning.
The text was updated successfully, but these errors were encountered: