Masster Server Query Issue

126 views
Skip to first unread message

Andrew Jones

unread,
Feb 6, 2013, 12:22:39 PM2/6/13
to steam-c...@googlegroups.com
Hi,

I am querying the Source Master server as follows:


$masterServer = new MasterServer(MasterServer::SOURCE_MASTER_SERVER);
$masterServer->getServers(MasterServer::REGION_ALL);


Normally this works just fine, however at certain times of day, for whatever reason, the initial IP at the master server address doesn't respond, so triggering the following error:


Notice: Request to master server 208.64.200.65 timed out, retrying... in D:\xampp\htdocs\nano2\lib\koraktor\steam-condenser\lib\steam\servers\MasterServer.php on line 205


The script retries three times and then outputs the following:


Notice: Request to master server failed, retrying 208.64.200.39... in D:\xampp\htdocs\nano2\lib\koraktor\steam-condenser\lib\steam\servers\MasterServer.php on line 212


But instead of trying the new IP address, the script in getServers() exits the while loop at the "break;" on line 214 and just returns an empty array. Is this intended? Have I missed something that might have caused this to go wrong?

Cheers,

Andrew

Sebastian Staudt

unread,
Feb 6, 2013, 12:35:05 PM2/6/13
to steam-c...@googlegroups.com
Hi Andrew,

The initial failing request is probably caused by some planned downtime of that server at a specific time of the day.
Nevertheless, the server at the second IP should work during this time.

The behavior you're experiencing isn't clear to me right now.
It might hint at a bug in my library or some other problem that I wasn't aware of.
Additionally, there might be a problem with Valve's servers that could cause this.

I'll try to reproduce this (without the need wait for the downtime).

Best regards,
    Sebastian
--
You received this message because you are subscribed to the Google Groups "Steam Condenser" group.
To unsubscribe from this group and stop receiving emails from it, send an email to steam-condens...@googlegroups.com.
To post to this group, send email to steam-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/steam-condenser/-/RuCP3FmwQ3sJ.
For more options, visit https://groups.google.com/groups/opt_out.


Sebastian Staudt

unread,
Feb 7, 2013, 7:39:45 AM2/7/13
to steam-c...@googlegroups.com
I confirmed this as a bug in the MasterServer implementation of the Java and PHP versions.


Am Mittwoch, 6. Februar 2013 18:35:05 UTC+1 schrieb Sebastian Staudt:
Hi Andrew,

The initial failing request is probably caused by some planned downtime of that server at a specific time of the day.
Nevertheless, the server at the second IP should work during this time.

The behavior you're experiencing isn't clear to me right now.
It might hint at a bug in my library or some other problem that I wasn't aware of.
Additionally, there might be a problem with Valve's servers that could cause this.

I'll try to reproduce this (without the need wait for the downtime).

Best regards,
    Sebastian

Am Mittwoch, 6. Februar 2013 schrieb Andrew Jones :
Hi,

I am querying the Source Master server as follows:


$masterServer = new MasterServer(MasterServer::SOURCE_MASTER_SERVER);
$masterServer->getServers(MasterServer::REGION_ALL);


Normally this works just fine, however at certain times of day, for whatever reason, the initial IP at the master server address doesn't respond, so triggering the following error:


Notice: Request to master server 208.64.200.65 timed out, retrying... in D:\xampp\htdocs\nano2\lib\koraktor\steam-condenser\lib\steam\servers\MasterServer.php on line 205


The script retries three times and then outputs the following:


Notice: Request to master server failed, retrying 208.64.200.39... in D:\xampp\htdocs\nano2\lib\koraktor\steam-condenser\lib\steam\servers\MasterServer.php on line 212


But instead of trying the new IP address, the script in getServers() exits the while loop at the "break;" on line 214 and just returns an empty array.  Is this intended?  Have I missed something that might have caused this to go wrong?

Cheers,

Andrew

--
You received this message because you are subscribed to the Google Groups "Steam Condenser" group.
To unsubscribe from this group and stop receiving emails from it, send an email to steam-condenser+unsubscribe@googlegroups.com.
To post to this group, send email to steam-condenser@googlegroups.com.

Andrew Jones

unread,
Feb 7, 2013, 11:20:28 AM2/7/13
to steam-c...@googlegroups.com
Thanks for looking into it Sebastian.  I'll look out for the fix.  Nice work on the library!

Sebastian Staudt

unread,
Feb 8, 2013, 6:25:00 AM2/8/13
to steam-condenser


2013/2/7 Andrew Jones <acw....@gmail.com>
To unsubscribe from this group and stop receiving emails from it, send an email to steam-condens...@googlegroups.com.
To post to this group, send email to steam-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/steam-condenser/-/rixsCEh6DS8J.
Reply all
Reply to author
Forward
0 new messages