Author Topic: Automation - Disconnect\Reconnect  (Read 2215 times)

SytheZN

  • Guest
Automation - Disconnect\Reconnect
« on: June 22, 2010, 11:16:57 pm »
Just a thought...

the server I'm using occasionally connects badly, giving me [430]'s all over until I reconnect...

To give you an overview, using 10 threads, 8 will connect fine, but 2 will return 430 on every article.

Is there any way I can get Alt.Binz to disconnect and reconnect or disable and enable the offending threads
automatically when I get 430's?

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Re: Automation - Disconnect\Reconnect
« Reply #1 on: June 22, 2010, 11:41:31 pm »
Not as such.  You could perhaps try adding the same server as a backup to itself, then at least it will retry for the phantom missing articles over a new connection. 

430  No such article found

The best solution of course is to get a proper provider.

SytheZN

  • Guest
Re: Automation - Disconnect\Reconnect
« Reply #2 on: June 23, 2010, 09:12:10 am »
Yeah I would... If there were one nearby.

Is there any scripting support in alt.binz?

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Re: Automation - Disconnect\Reconnect
« Reply #3 on: June 23, 2010, 09:23:14 am »
You can toggle Connect programmatically by replacing <connect>false</connect> with <connect>true</connect> in the altbinz_status.xml file (see Setup -> Miscellaneous #2).  I'm not sure there's enough status info there for you to do what you want, though.  You'd probably need to parse the log file for errors. 

Try the backup suggestion above first. ;)

Offline Rdl

  • Administrator
  • *****
  • Posts: 4050
Re: Automation - Disconnect\Reconnect
« Reply #4 on: June 23, 2010, 11:24:45 am »
Backup suggestion should do the job

SytheZN

  • Guest
Re: Automation - Disconnect\Reconnect
« Reply #5 on: June 23, 2010, 09:04:44 pm »
Hmmm... Thanks.

Using the backup server thing is great, only it sometimes takes 8-10 reconnection attempts before i get the thread working.

The problem with using the Connect button is it kills all the threads, not just the ones returning errors.

I'm a programmer by day, so I think I'll write my own client... Can I count on you guys for help with the protocol?

Offline Rdl

  • Administrator
  • *****
  • Posts: 4050
Re: Automation - Disconnect\Reconnect
« Reply #6 on: June 24, 2010, 07:30:56 am »
Plenty info on the internet.

Lock