News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

Problem with listing server?

Started by Fifty, May 30, 2014, 01:15:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fifty

I've started up my servers twice now, and each time they appear correctly in the listings server for a little while, and then they start appearing as "Unknown" and must be typed in manually, as if the listings server has forgot what pakset they belong to even though they are still online.

Is there any problem on the listing server side? I'm doing everything pretty much as usual on my end.
Why do we park on the driveway and drive on the parkway?

Ashley

#1
This happens when the listings server crashes and is restarted, it forgets all the information about which servers were previously running. The periodic announce that Simutrans servers perform doesn't include information like the pakset so the server listing doesn't get updated (but it'll go back to working again once a full announce is performed, e.g. when the Simutrans server starts up).

I don't really know why we don't just announce the full data every time, there's very little benefit to the periodic announcements leaving out this information other than making the entire system more fragile. The patch attached changes the game to send all the info in the periodic announcements.

(The listings server used to save the listing to a database, but the logic around how it did this was somewhat flawed and I never got around to fixing it. That's the other way to approach the problem I guess. Still, there's no harm in sending the full info with every announce IMO, we're talking tens of bytes of information.)


Edit: I've hopefully fixed the database backend, so it ought to preserve listings across a restart now. Try using "nettool announce" to force your servers to resend their full announce info, then hopefully you won't have any further issues.
Use Firefox? Interested in IPv6? Try SixOrNot the IPv6 status indicator for Firefox.
Why not try playing Simutrans online? See the Game Servers board for details.

prissi

This is indeed reasonable. Added in r7243