in reply to Re^4: Trying to thread a daemon with threads and Thread::Queue
in thread Trying to thread a daemon with threads and Thread::Queue

Sorry, I don't think I can help further. Your code with that change works for me here. I have stayed with (actually reverted to) 5.8.6 because I've had all kinds of unresolvable problems using threads with 5.8.8. Too many changes have been made for change sake. The once pretty reliable techniques I used successfully since 5.8.0 stop working. The current maintainer has his own agenda, which from my perspective comes down to complexity for its own sake.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^5: Trying to thread a daemon with threads and Thread::Queue

Replies are listed 'Best First'.
Re^6: Trying to thread a daemon with threads and Thread::Queue
by jasmineaura (Initiate) on Aug 27, 2008 at 23:25 UTC
    Strange... The server I am testing on is running perl 5.8.5 Anyways, I think I might just try without Thread::Queue completely, perhaps just threads and threads::shared.
    A thought that comes to mind, is to keep the connection threads alive for a pre-defined number of connections, say $threadLifeTime = 100.

    I'll do some more reading and research to see if I can do without Thread::Queue.