Update time for the name.subsonic.org redirect

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

Update time for the name.subsonic.org redirect

Postby BKKKPewsey » Tue Jun 12, 2012 5:22 pm

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)
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

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

Postby hakko » Tue Jun 12, 2012 6:25 pm

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)
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

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

Postby hakko » Tue Jun 12, 2012 6:27 pm

And if I'm right, this means you have to re-compile and build your own subsonic.war to change it.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

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

Postby BKKKPewsey » Wed Jun 13, 2012 12:41 am

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:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom


Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 7 guests