← Back to context

Comment by direwolf20

4 hours ago

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

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.