in reply to Re: how to make LWP calls compatible with forked script
in thread how to make LWP calls compatible with forked script

Hi,

Firstly, I have already updated the problem description.
Secondly, I tried creating LWP::UserAgent in each child process, but of no use. Still it crashes the Perl.
Can you please suggest a way to handle this?

Thanks in advance

  • Comment on Re^2: how to make LWP calls compatible with forked script

Replies are listed 'Best First'.
Re^3: how to make LWP calls compatible with forked script
by iburrell (Chaplain) on Sep 03, 2004 at 16:57 UTC
    It might be a bug in ActivePerl. Perl on Windows does some special stuff to provide the Unix API on Windows which does things differently. For example, fork() is emulated with threads, and sockets need to be mapped to WinSock API.

    I know there were some bugs in earlier releases of ActivePerl 5.6. Make sure you have the most recent release. ActivePerl 5.8 is supposed to be better; try that if you can. Finally, what Windows version are you running? The NT-based ones (NT 4, 2000, XP) are more stable than 95, 98, ME.

      Actually I cant change the version of Perl. Got to use the ActivePerl 5.6.

      The platform is Windows 2000. One thing to note is that the same script runs fine on Solaris. Is there a way to rectify the behaviour on Windows platform?