in reply to Daemon won't process request until next

I would debug this either with the Perl debugger, by inserting a lot of print statements and seeing where the daemon is getting stuck, or else with strace.

I know that's rather obvious and perhaps unhelpful, but without any details whatsoever the only other option is wild guessing...

Replies are listed 'Best First'.
Re: Re: Daemon won't process request until next
by shotgunefx (Parson) on Jul 17, 2003 at 09:21 UTC
    Nothing wrong with stating the obvious. I tried the print route. I compared the output of the manually typed telnet request and the lynx/lwp requests and they all have the same exact byte per byte, input and output.

    Basically get_request() is not seeing the last line of the request until another request comes in.I think it's an IO::Handle thing. The machine with the problem was just for testing. I've run it on other machines since without problems so probably some deep crusty socket problem. Maybe a bad header or something. Either way I just gave up as the test machine is about to get it's OS replaced.

    -Lee

    "To be civilized is to deny one's nature."