play-with-docker / play-with-docker.github.io

Play with docker class-room repo
Apache License 2.0
362 stars 253 forks source link

Characters entered in the terminal are not displayed in the order entered on slow connections. #173

Open barney-spencer opened 5 years ago

barney-spencer commented 5 years ago

Using 4G and typing at a decent speed, the terminal doesn't display the characters in the same order they were entered. For example if I type 'docker whats up' quickly, I get lag in the terminal and then. 'docker ptwha su' is displayed. The work around is to type one finger at a time with a pause between each char. No deal.

Privat33r-dev commented 5 months ago

I tested it with developer's tools using the following settings and can confirm that issue still exists. image I wrote "Hello world!", at some point it was reordered. image

Potential solution: marking packet numbers and sizes of WS packets like TCP does, but I am not sure that it happens in the WS exactly.