logoalt Hacker News

direwolf20today at 4:23 PM1 replyview on HN

I don't think you can get ENETUNREACH from recv though. If the request was sent, it'll time out.


Replies

lapcattoday at 4:44 PM

It can cause problems to flip off the internet when you already have open connections, though there are also API to detect changes in network availability. But I don't see that as a significant problem for "I turn off my WiFi now to do performance-sensitive work". First turn off WiFi, then launch the app you need, in that order. Problem solved.