Loading ...
Sorry, an error occurred while loading the content.

66390Re: The mod_perl protocol handler sample code have some problem!

Expand Messages
  • Randy Kobes
    Aug 15, 2005
      On Fri, 12 Aug 2005, Stas Bekman wrote:

      > OK, I wrote a test case that reproduces the problem.
      >
      > If you run:
      >
      > perl Makefile.PL
      > make test
      >
      > things work, but if you do:
      >
      > t/TEST -start
      > t/TEST -run
      >
      > the process starts spinning in the getline() call, as $sock->recv doesn't
      > fail.
      [ ... ]
      > Here is a rewrite that doesn't spin. Notice that I've
      > dropped the $c-aborted check, I don't know if it's needed,
      > since recv() should have caught that anyway. But please
      > restore it if needed.

      Works great on Win32, without modification - thanks!

      --
      best regards,
      randy
    • Show all 9 messages in this topic