Seshouan has asked for the wisdom of the Perl Monks concerning the following question:

Sorry for the complexity of this problem

In PerlIPC, in section "Internet TCP Clients and Servers", the multithread server behaves weirdly with perl on a windows machine:
- first of all, the -T flag causes the following error: 'Too late for "-T" option at testmultserver.pl line 1.'
so I removed it.
- the fact that the global $EOL doesn't have a "my" declaration in front of it, causes the following error:
'Global symbol "$EOL" requires explicit package name at testmultserver.pl line 6.'
so I added my in front of it.
- the line: exec '/usr/games/fortune'
had to be removed (i'm not on a unix machine)
- now that I have the multithread server working, the client runs and prints out the appropriate message, but it never quits (this is my big problem)

Does anbody have any idea what could be wrong with the multithread server? is there a simpler example of a multithread server that accepts simultaneous client connections?

Thanks

Replies are listed 'Best First'.
Re: Internet TCP Clients and Servers
by Zaxo (Archbishop) on Sep 26, 2001 at 03:49 UTC

    I don't have enough information to comment on the major problem, but I can help with taint mode.

    In your file extension associations, under 'Open', add the -T switch to perl. If you don't want to always run perl programs in taint mode, you can use another extension, like .plx or .cgi.

    Update: See also replies to today's Taint with Perl on NT/IIS for a more detailed, but IIS-specific, discussion.

    After Compline,
    Zaxo

Re: Internet TCP Clients and Servers
by perrin (Chancellor) on Sep 26, 2001 at 05:27 UTC