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

I took those lines out of it and so ... not broken anymore and yes, it works with Client2 with forking but not with threads. I get the exactly the same result with the unmodified Client2 module.
  • Comment on Re^8: Using Threads For Simple SMTP Relay Server

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