Page 1 of 1

Update time for the name.subsonic.org redirect

PostPosted: Tue Jun 12, 2012 5:22 pm
by BKKKPewsey
Do any of the guru's that lurk over in here in the dungeons know what the update frequency of subsonic.org address is?
I am running my server with a vpn and when the IP address changes SS is no longer accessible from outside because it is redirecting to the old IP.
If I know its happened I can log on (via local lan) and hit save in settings/network which sorts it out but if I could increase the frequency of the updates say to every hour that would obviously reduce the down time.
So if anyone knows where the timer settings are stored I would be grateful :D

p.s. I am currently running on 4.6 (too many issues for me on 4.7 beta)

Re: Update time for the name.subsonic.org redirect

PostPosted: Tue Jun 12, 2012 6:25 pm
by hakko
Why does your VPN change IP addresses like that?

I looked quickly in NetworkService.java and it looks like this:

Code: Select all
private static final long URL_REDIRECTION_DELAY = 2 * 3600L;

...

urlRedirectionFuture = executor.scheduleWithFixedDelay(urlRedirectionTask, 0L, URL_REDIRECTION_DELAY, TimeUnit.SECONDS);


so I'd guess every second hour. (nothing promised though, I never played around with it, just had a quick glance now)

Re: Update time for the name.subsonic.org redirect

PostPosted: Tue Jun 12, 2012 6:27 pm
by hakko
And if I'm right, this means you have to re-compile and build your own subsonic.war to change it.

Re: Update time for the name.subsonic.org redirect

PostPosted: Wed Jun 13, 2012 12:41 am
by BKKKPewsey
Cheers for that :)
Hmm in that case I may wait to 4.7 final (if the buglets disappear :roll: )

p.s the IP address changes due to server load changes and is done automatically (eg connects to lower loaded server)

:mrgreen: