[slim] Re: AsyncHTTP errors
OK, it's been a while, but I have now successfully upgraded to the latest nightly and YES! the single-word hostname works now. Strangely, localhost no longer seemed to work but that doesn't worry me too much. -- smc2911 smc2911's Profile: http://forums.slimdevices.com/member.php?userid=4388 View this thread: http://forums.slimdevices.com/showthread.php?t=25454 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: AsyncHTTP errors
andyg Wrote: single-word domain = use system library for lookup, it's probably in a hosts file or LAN DNS server, so lookup should be fast. That's interesting. My domain is a single-word domain, which explains why it used to work, but not why it's not working now. Any suggestions greatly appreciated, as usual. Thanks, Sean. -- smc2911 smc2911's Profile: http://forums.slimdevices.com/member.php?userid=4388 View this thread: http://forums.slimdevices.com/showthread.php?t=25454 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: AsyncHTTP errors
It should work now, have you tried a recent nightly? -- andyg andyg's Profile: http://forums.slimdevices.com/member.php?userid=3292 View this thread: http://forums.slimdevices.com/showthread.php?t=25454 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: AsyncHTTP errors
Thanks. I might give the latest release a whirl this weekend. Given andyg's comments I don't suppose it will resolve my hostname issue though. Mind you, I'm still a bit mystified as to why it used to work for me. Scouring through my backup files (mainly looking through etc and etc/init.d) I can't find any evidence that I was running a dns server locally and I'm pretty sure my router cannot handle serving local addresses, so I just don't understand why it used to work if asyncHTTP only makes dns calls and doesn't interrogate the hosts file (or winbind). -- smc2911 smc2911's Profile: http://forums.slimdevices.com/member.php?userid=4388 View this thread: http://forums.slimdevices.com/showthread.php?t=25454 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: AsyncHTTP errors
I've checked in some new code that will use a direct lookup if a hostname contains no periods. This should fix your problem. -- andyg andyg's Profile: http://forums.slimdevices.com/member.php?userid=3292 View this thread: http://forums.slimdevices.com/showthread.php?t=25454 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: AsyncHTTP errors
This may be out of context, but why isn't the code using the system default host resolution paths? Most applications should be able to use the system paths (I know linux uses nsswitch.conf for example) so that you can fall back on whats known to work? If files don't have it, then go to dns, etc.. -- herbman herbman's Profile: http://forums.slimdevices.com/member.php?userid=6170 View this thread: http://forums.slimdevices.com/showthread.php?t=25454 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: AsyncHTTP errors
Because if you try to lookup invalid.domain.com using the system library, you'll block the entire SlimServer for many seconds. What we do now is: localhost = 127.0.0.1 single-word domain = use system library for lookup, it's probably in a hosts file or LAN DNS server, so lookup should be fast. normal domain - async lookup using first working nameserver (discovered at SlimServer startup time). -- andyg andyg's Profile: http://forums.slimdevices.com/member.php?userid=3292 View this thread: http://forums.slimdevices.com/showthread.php?t=25454 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
Re: [slim] Re: AsyncHTTP errors
I'm happy to give the latest release a try, as I can always revert, but before I do that, is it likely to mess up my existing MySQL setup? It comes with its own MySQL server, running on a different port. You should be fine. -- Michael --- Help translate SlimServer by using the SlimString Translation Helper (http://www.herger.net/slim/) ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: AsyncHTTP errors
andyg Wrote: I would suggest using the IP address for your local machine if you aren't able to add local entries to your router's DNS server. For the moment, I'll stick with localhost for the moment (since it's still the same machine). I see that works because asyncHTTP explicitly catches localhost and maps it to 127.0.0.1. I must admit I'm surprised that the hosts file is not checked first: I thought that this was standard operating procedure for all networking apps. mherger Wrote: It comes with its own MySQL server, running on a different port. Hmmm. I supposed that means pointing my php queries to a different port for pulling down music stats. Do you know the port number? -- smc2911 smc2911's Profile: http://forums.slimdevices.com/member.php?userid=4388 View this thread: http://forums.slimdevices.com/showthread.php?t=25454 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
Re: [slim] Re: AsyncHTTP errors
Hmmm. I supposed that means pointing my php queries to a different port for pulling down music stats. Do you know the port number? From slimserver.pref: dbsource: dbi:mysql:hostname=127.0.0.1;port=9092;database=%s -- Michael --- Help translate SlimServer by using the SlimString Translation Helper (http://www.herger.net/slim/) ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: AsyncHTTP errors
I've really been putting things off ever since the scanner split. Prior to the split 6.5b was surprisingly solid, but I've got the impression that after the split it was a lot less so. Is this still the case? I should also point out that I was also using the 7504 version before (on the old machine) and didn't have this problem. -- smc2911 smc2911's Profile: http://forums.slimdevices.com/member.php?userid=4388 View this thread: http://forums.slimdevices.com/showthread.php?t=25454 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: AsyncHTTP errors
DNS entries in a hosts file won't be found, you'll need to add your hostname to your DNS server, and make sure SlimServer is using that DNS server. Run with --d_http_async to test. -- andyg andyg's Profile: http://forums.slimdevices.com/member.php?userid=3292 View this thread: http://forums.slimdevices.com/showthread.php?t=25454 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
Re: [slim] Re: AsyncHTTP errors
6.5 is considered instable and experimental. And it has always been. -- Michael --- Help translate SlimServer by using the SlimString Translation Helper (http://www.herger.net/slim/) ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: AsyncHTTP errors
mherger Wrote: 6.5 is considered instable and experimental. And it has always been. Agreed, which is why I described 6.5b as being surprisingly stable. I experimented with it extensively, found it to my liking, but then decided that continuing to experiment past the scanner split may not be wise (you may recall the dire warnings issued at the time on the forums). I'm happy to give the latest release a try, as I can always revert, but before I do that, is it likely to mess up my existing MySQL setup? The fact that AsyncHTTP only uses the DNS server to resolve host names: my dns server is the router, which doesn't know about the local machine names. Perhaps I previously had a local dns server running on the old linux box without realising it. The box itself is dead, but I can't see anything suggestive in my archived init.d directory, but I'll scour through the backups a bit more to confirm. -- smc2911 smc2911's Profile: http://forums.slimdevices.com/member.php?userid=4388 View this thread: http://forums.slimdevices.com/showthread.php?t=25454 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
[slim] Re: AsyncHTTP errors
I would suggest using the IP address for your local machine if you aren't able to add local entries to your router's DNS server. -- andyg andyg's Profile: http://forums.slimdevices.com/member.php?userid=3292 View this thread: http://forums.slimdevices.com/showthread.php?t=25454 ___ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss