in reply to Re^10: Using Threads For Simple SMTP Relay Server
in thread Using Threads For Simple SMTP Relay Server

I'm sorry if I'm being dense.

Not at all. If it works for me and not for you, all we can do is try and work out the differences, and there are none in that lot. What about threads and threads::shared? I have:

C:/Perl/lib/threads.pm : 1.62 C:/Perl/lib/threads/shared.pm : 1.12

These are the latest distributions from CPAN. If you don't have them you should try installing them.

I know I was using the fileno()/dup trick to successfully pass socket handles around prior to installing them, but that was probably under 5.8.6 rather 5.8.8. Maybe the combination will sort things out for you?


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."

Replies are listed 'Best First'.
Re^12: Using Threads For Simple SMTP Relay Server
by lamberms (Sexton) on Oct 31, 2007 at 17:58 UTC
    I'm using:
    threads: 1.67 threads::shared: 1.14
    Hmmmmm. I'm up 5 version on threads and 2 on threads::shared. I don't think it's threads::shared because all I'm passing is an integer number (of the IO::Socket::INET fileno()). I'll try downgrading threads and see what happens.
        Wow, I just downloaded the code you gave and ran it on my machine. It does the exact same thing it always does. That is sooo weird. I guess we're just going to have to give up. I really appreciate your help. I suppose I'll fire up .Net and write the SMTP relay server there. I was really hoping to avoid that ;-).
        -Mike