Comment by throwaway132448

Comment by throwaway132448 2 days ago

19 replies

It’s got to the point where I turn off my WiFi now to do performance-sensitive work, because of the boost that killing all this background rubbish gives. Anything I need online I can just offload to my phone while my computer is offline.

ChrisMarshallNY 2 days ago

The problem with doing that, is that the standard TCP timeout is 60 seconds.

All of a sudden, you are beset with 60-second hangs.

  • embedding-shape 2 days ago

    If the computer doesn't have any online network connection, shouldn't it outright error? I understand that the timeout sucks when your network is not connected to the internet but still alive, then that's an issue, but if there is no connection at all, why would the timeouts matter?

    • moduspol 2 days ago

      It wouldn't be able to open a TCP connection without knowing what IP address / interface to use.

      You're right--it should outright error. You should only see timeouts like that if you were dropping the packets from some middleware or middlebox, but your client still had a valid IP address.

  • xnorswap 2 days ago

    You just gave me flashbacks of mistyping a folder share name on windows and having the whole PC lock up for a minute or two.

  • [removed] 2 days ago
    [deleted]
  • lapcat 2 days ago

    > All of a sudden, you are beset with 60-second hangs.

    No, that's not how it works. Frankly, I'm astonished to see this claim here.

    • pixl97 2 days ago

      The problem with this is some apps do incredibly stupid things. Now I'm not saying the operating system itself, but I had some ide screw off and go into long pause mode when my laptop was in airplane mode.

      • lapcat 2 days ago

        I'm sure there are stupid apps out there, but "the standard TCP timeout" was a misdiagnosis of the problem.

    • ChrisMarshallNY 2 days ago

      Depends.

      I have a couple of apps on my computer that do exactly that.

      I am looking forward to learning how it does work...

      • lapcat 2 days ago

        > I am looking forward to learning how it does work...

        It's basic sockets. If you call connect() when the internet is disabled, the errno is ENETUNREACH.

        The higher-level API are built on sockets. If any apps are misbehaving, they're simply badly coded.

      • direwolf20 2 days ago

        You're not thinking like a systemd developer. The right thing to do is to ignore all anecdotes and direct evidence that a problem exists. I am talking about systemd renaming your network interfaces because you added or removed hardware.