Current time: 11-30-2020, 04:11 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Feature Request: Urlblast auto registration
06-04-2010, 07:30 AM (This post was last modified: 06-04-2010 08:02 AM by asperkins.)
Post: #6
RE: Feature Request: Urlblast auto registration
Ok. I have auto registration working. It needs some more tweaking, but so far it works quite nicely.

The server settings no longer have to be updated for each remote agent. That process is handled automagically now. Smile

I discovered that you can have several params in the location= param in urlblast.ini.

My example...


I added some settings to settings.ini

// Used to enable agent auto registration
// The key expected from the agent
// The base location for the jobs

So, in getwork, if autoregister is on, I grab all the params and create a file like...

browser=IE 8

I moved the retrieval of locations to a function in

function GetLocations()

This function will find all files that match locations_*.ini and process them. It builds and returns the expected array.

Also, on the "New Test" tab/page, I check to see if the agent has checked in in the last 5 minutes. If not, the ini file gets deleted and it won't show up. As soon as the agent hits getwork again the file is recreated and he shows up.

If two agents come in with the same location, they will collide. With a little more work I could add support for multiple agents from the same location, but I'm not sure yet if that's needed. I'll just have my users confirm that they didn't use an already used location name.

I hope to get this code back into the main repo. Do you prefer that I send a patch file for your review when I'm done?

btw. Is latency just an estimate, or is it calculated by some means?


If you'd like to test it, do the following...

In you urlblast.ini

Url Files Url=

Set the location param to something like.
*** Replace the items like Keller_TX, FIOS, etc. with your info.

Location Key=br549

Fire it up and go to and try it.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: Feature Request: Urlblast auto registration - asperkins - 06-04-2010 07:30 AM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)