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

My versions are:
Perl - 5.8.8 Build 822
Net::SMTP - 2.31
Net::SMTP::Server::Client2 - 0.2

I'm sorry if I'm being dense. I'm really not trying to be.
  • Comment on Re^10: Using Threads For Simple SMTP Relay Server

Replies are listed 'Best First'.
Re^11: Using Threads For Simple SMTP Relay Server
by BrowserUk (Patriarch) on Oct 31, 2007 at 14:58 UTC
    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.
      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.