Download lag: How to not freeze a server
Have you ever been hosting a server and suddenly have your computer "lock up"? This is a result of someone downloading the tileset the level uses. The only way to prevent this as a server is to kick the person downloading, but unfortunately they usually just try again. This problem happens to everyone who hosts custom tilesets, and can be very annoying to you and your clients.
I'm making this post so you will know how to prevent YOU from freezing people's servers. When you see that you are downloading a file, keep a close eye on the download bar. If it is moving throughout the whole download, it is ok and will be causing minimal lag. Problems arise when the bar stops moving. If the bar suddenly stops, you are creating download lag. For as long as it is not moving, the server's computer will be frozen. Usually, the bar will continue moving after a second or so, and it won't be more than a nusance.
The serious problem is when the bar comes to a full stop and does not move any more. If it stays like this for an extended period of time (more than 5-10 seconds), quickly press escape to cancel the download. Any longer and everyone in the server will time out, while the server remains frozen until you cancel your download or they ctrl+alt+delete out of jj2.
To paraphrase this, just cancel your download if it isn't working. Give it another try if you want, but if the same problem arises, just give up. Don't make the server have to ban you just for the sake of being able to keep the server running.
I don't really know what technically causes this infamous download lag, in case you want to know. Someone else has to say that. I only know how to cause it.
|