2 ms·
I don't think you can get ENETUNREACH from recv though. If the request was sent, it'll time out.
by direwolf20 9mo ago
I don't think you can get ENETUNREACH from recv though. If the request was sent, it'll time out.
- lapcat 9mo agoIt 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.