Hi Kristis,
> > The changes I have made are:
> > 1) Some more multi-threading changes on top of yours
>
> Does that threads->yield() call really solve the problem for you ?
I don't think it did, I think it was the writing to STDIO that was
causing a fair bit of the trouble. I left it in there just as good
practice I suppose (But apparently most platforms ignore it anyway!)
> > 4) Removed some logging prefix - fixes the logging issue to mention.
>
> I'd like the connection IP address back though. I may have to
> extend your work to push $request to all logmsg() calls.
Would you do this as an optional parameter so that areas without a
request could still write to the log OK?
> > I also monitored the CPU while running and there didn't
> seem to be a
> > problem on windows.
>
> That's great! Which ActiveState Perl are you running ?
Version 5.8.8 (Build 819)
> Using your Daemon.pm I'm still getting the CPU held up at
> 100% and performance suffers on Linux 2.4.27. Why won't it
> work for me ?
The only thing that I can think of is if the implementation of accept on
linux is a bit dodgy and is effectively polling the connection (Is that
part of the IO::Socket package?)
> Also, what is the purpose of: $daemon_configuration->{ location };
Oops! I discovered that with our network setup here that hardcoding
localhost in the socket creation meant it didn't work. (Our network is
weird, I've got two different IP addresses each for different Domains -
long story!). This was a temp thing I put in with the fully qualified
machine name, but I have found that everything works if you don't
specify the host at all in the connection.
> At some point I would have said you should try running Scmbug
> under Cygwin. That's what some people reverted to. But it
> can't be the long-term solution.
I couldn't get Cygwin running on my machine, and our final roll out will
most probably want to be totally on ActivePerl.
Thanks, Rob
_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users