Jump to content
SubSpace Forum Network

Recommended Posts

Posted (edited)
The current available and "reliable" directory servers are:

 

sscentral.sscuservers.net

ssdir.playsubspace.com (info)

dirserver.ssnecentral.net (info)

ds1.hlrse.net

 

ssdir.playsubspace.com, sscentral.sscuservers.net, dirserver.ssnecentral.net, ds1.hlrse.net

 

 

All other standard directory servers that come with the client are either gone, down or abandoned.

This needs to be updated as the following:
The current available and "reliable" directory servers are:

 

ssdir.playsubspace.com (info)

ds1.krslynx.com (info)

ds1.hlrse.net (info)

sscentral.sscuservers.net

dirserver.ssnecentral.net (info)

 

ssdir.playsubspace.com, ds1.krslynx.com, ds1.hlrse.net, sscentral.sscuservers.net, dirserver.ssnecentral.net

 

 

All other standard directory servers that come with the client are either gone, down or abandoned.

 

By the way, for anyone wondering...

 

http://ds1.krslynx.com/current.xml is the same as http://ds1.krslynx.com/

 

And the following also work:

 

http://ds1.krslynx.com/distribution.xml

http://ds1.krslynx.com/stats.txt

Edited by L.C.
  • Replies 96
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted (edited)
sscentral.sscuservers.net (Priit K.'s directory server) will always be unreliable but working in the end. Do not dismiss it as it's still our main directory server. Edited by Maverick
Posted
For information links, they're not very intuitive. I originally added the info part so that people would be able to find out information about the particular directory server (downtime, problems, zones, etc), I don't think the average player will understand what a bunch of xml code is suppose to help them with.
  • 2 weeks later...
  • 3 weeks later...
Posted

Ok.

 

It's just a hassle to get people to update them just so they can add a zone (and people are newbies / lazy).

But from what you're telling me I guess it's always been like this... if so I never noticed it.

Posted (edited)

As of right now, only ds1.hlrse.net is online.

 

ds2.hlrse.net (ds1.krslynx.com) is being relocated to another server (says L Y N X).

 

What is up with ssdir.playsubspace.com?

 

subspaceonline.com should host a Linux binary of Snrrrub's directory server.

Edited by L.C.
Posted

As of right now, only ds1.hlrse.net is online.

 

ds2.hlrse.net (ds1.krslynx.com) is being relocated to another server (says L Y N X).

 

What is up with ssdir.playsubspace.com?

 

subspaceonline.com should host a Linux binary of Snrrrub's directory server.

 

I was just upgrading some software on my server, ds1.krslynx.com should be online (should have only been offline for perhaps 1, maybe 2 minutes. :)

Posted (edited)

As of right now, only ds1.hlrse.net is online.

 

ds2.hlrse.net (ds1.krslynx.com) is being relocated to another server (says L Y N X).

 

What is up with ssdir.playsubspace.com?

 

subspaceonline.com should host a Linux binary of Snrrrub's directory server.

 

I was just upgrading some software on my server, ds1.krslynx.com should be online (should have only been offline for perhaps 1, maybe 2 minutes. :)

Hehe I booted it up.

 

EDIT: I hope it isn't running twice. D=

Edited by L.C.
  • 4 weeks later...
Posted (edited)

Also please add ds.hlrse.net as well. :unsure: Yet another directory server.

 

*s*Directory:IP:sscentral.com,sscentral.sscuservers.net,ssdir.playsubspace.com,ds1.krslynx.com,nanavati.net,ds1.hlrse.net,ds.hlrse.net

 

(Note that ds.hlrse.net != ds1.hlrse.net, and that ds.hlrse.net is the very same server as hlrse.net -- but you cannot use hlrse.net for some reason, as that will not work)

 

http://stats.hlrse.net/ (Index file set to current.xml via .htaccess, so the other two files are also accessible by adding their filename at the end of the URL)

Edited by L.C.
Posted (edited)

doc, I have no idea if this has any correlation with your script, but I got an automated e-mail from our server saying ds1.hlrse.net was stopped because it kept crashing.

 

It is unusual because this is the first time ds1.hlrse.net has crashed (important to note that UpstreamServers is disabled and has previously ran 1.0 and as of about a week ago running 1.1).

 

EDIT: I see that sscentral.com and krslynx.com are down too. krslynx.com might still be running v1.0, but sscentral.com is running v1.1. A part of me wants to think that something about 2 to 3 hours ago might have caused all directory servers running Snrrrub's software crashed together. :)

Edited by L.C.
Posted (edited)

doc, I have no idea if this has any correlation with your script, but I got an automated e-mail from our server saying ds1.hlrse.net was stopped because it kept crashing.

 

It is unusual because this is the first time ds1.hlrse.net has crashed (important to note that UpstreamServers is disabled and has previously ran 1.0 and as of about a week ago running 1.1).

 

EDIT: I see that sscentral.com and krslynx.com are down too. krslynx.com might still be running v1.0, but sscentral.com is running v1.1. A part of me wants to think that something about 2 to 3 hours ago might have caused all directory servers running Snrrrub's software crashed together. :)

ew :) ok I'll turn if off for now.

 

Source code

#!/usr/bin/perl
#use strict;
use IO::Socket;
use IO::Select;
use XML::Writer;
use IO::File;
use DateTime;

use CGI qw(:cgi);
use CGI::Cache;

#my directory servers
my @ssdirs = 
   (   'sscentral.sscuservers.net',
       'ssdir.playsubspace.com',
       'ds1.hlrse.net',
       'ds1.krslynx.com',
       'sscentral.com',
       'nanavati.net',
       'ds.hlrse.net',
       'dirserver.ssnecentral.net'
       );

# Set up cache
CGI::Cache::setup({ cache_options =>
	   { default_expires_in => '30 minutes' }});

my $cgi = new CGI;

# CGI::Vars requires CGI version 2.50 or better
CGI::Cache::set_key("centralonline");


# This should short-circuit the rest of the loop if a cache value is
# already there
CGI::Cache::start() or exit;

print header(-type => 'application/xml');  # make browser expect xml


sub fisher_yates_shuffle {
   my $deck = shift;  # $deck is a reference to an array
   my $i = @$deck;
   while ($i--) {
       my $j = int rand ($i+1);
       @$deck[$i,$j] = @$deck[$j,$i];
   }
}

#my $output = new IO::File(">centralonline.xml") || die("Failed to create file");

my $io = new IO::Handle;

my $writer = new XML::Writer(STDOUT,
                            #NEWLINES => 1,
                            ENCODING => 'utf-8'
                            );
$writer->xmlDecl("UTF-8");
$writer->pi('xml-stylesheet','type="text/xsl" href="centralonline.xsl"');


#shuffle
fisher_yates_shuffle(\@ssdirs);

$writer->startTag("subspacedirectorylist");

foreach my $dirServer (@ssdirs) {
   
   $writer->startTag("server");
   $writer->dataElement("name",$dirServer);
   $writer->startTag("error");

   my $sock = IO::Socket::INET->new(
                                 Proto => 'udp') || print('failed to connect');
     
   my $aton = gethostbyname($dirServer) or print "Can't resolve $dirServer: $!\n";
   my $addr = sockaddr_in(4990, $aton);
   
   my $sel = new IO::Select($sock);
   $sock->connect($addr);
   
   my $online = 0;
   my $retrycount =0;

   RETRY:
   
   $sock->send(pack('CCVv', 0x00, 0x01, 0x12345678, 0x0011))
or die "send: $!\n";
   
   
   if ($sel->can_read(3))
   {
$online = 1;
my $buf;
if (!(my $len = $sock->recv( $buf, 596)))
{
    $online = 0;
    print "recv: $!\n";
}
   } else {	
$online =0;
if($retrycount<2) {
    $retrycount++;
    goto RETRY;
} else {
    print "Connection Timeout\n";	    
}
   }   

   #send directory request and disconnect to make sure its tidy
   $sock->send(pack('CCVC',0x00,0x03,0x00000000,0x01));
   #send disconnect
   $sock->send(pack('CC', 0x00, 0x07)) or print "send: $!\n";
   $sock->close();
   $writer->endTag("error");    
   $writer->dataElement("lastchecked",DateTime->now->iso8601());
   $writer->dataElement("online",$online);
   $writer->dataElement("zonecount",-1);
   $writer->endTag("server");
}
$writer->endTag("subspacedirectorylist");
$writer->end();

CGI::Cache::stop();

Edited by doc flabby

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...