• mozz@mbin.grits.devOP
    link
    fedilink
    arrow-up
    12
    ·
    edit-2
    1 year ago

    Yeah. I spend a majority of my working time on a slightly-unreliable Wifi network, and getting irritated that my keystrokes are lagging by some seconds and making it hard to e.g., edit the line I’m editing, is a daily occurrence. I literally had never heard of mosh before today, and when I tried it it was like the heavens opened up.

    • steventhedev@lemmy.world
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      1 year ago

      TCP was never designed with wifi in mind. TCP retransmission was only ever meant to handle drops due to congestion, not lossy links.

      Tmux is a wonderful complement to mosh. Together you get persistence even when your local client loses power (speaking from experience)

      • mozz@mbin.grits.devOP
        link
        fedilink
        arrow-up
        9
        ·
        edit-2
        1 year ago

        I still remember the professor in my networks class explaining how TCP worked, and then saying more or less:

        Why doesn’t it send a detailed mapping of which sections of the stream have been received and which haven’t, allowing retransmission of only the dropped packets instead of what it does which is just backing up and blasting a whole new window’s worth every time a single packet is dropped? Well, I don’t know. It’d be a little more complex but the improvement in functionality would be so obviously worth it that it should. Don’t know what to tell you. Anyway, this is how it works…