3 ms·
The best part is when I simulate bad network conditions by increasing latency and my autocompletion stops working (timeout 10ms) or becomes unusable.
by ATsch 9y ago
The best part is when I simulate bad network conditions by increasing latency and my autocompletion stops working (timeout 10ms) or becomes unusable.
- zaphar 9y agoWhy would you need to simulate bad network conditions over localhost? It's probably you're most stable network connection in any situation. You are simulating a condition that will almost never happen unless your machine itself is dying in which case you have bigger problems than auto-completion to worry about.
- ATsch 9y agoYou have a custom communication protocol over UDP and discover that with high latency, transferring large chunks takes a long time. You have a laptop available for testing. What do you do? Sure, could do some hyper complex setup with multiple VMs etc... or you could just run one command to temporarily increase latency on localhost. If you know some better way of doing this, feel free to tell me.
- zaphar 9y agoCreate a new loopback interface for testing? No reason you should be using your actual loopback for testing bad networking. Especially since the loopback interface is used for far more things than the one application you are testing these days. Setting up a new interface is pretty easy on most unix OS's and then you can increase the latency on just that interface without impacting the interface most software on your machine is built to expect to be blazing fast. And you can mess with that interface to your hearts content knowing the only thing affecting it is the applications you are running on it.
- ATsch 9y agoThat's a good idea actually, that didn't occur to me.