Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: mod_perl bug when reading post content with $|?

by Flexx (Pilgrim)
on Sep 10, 2002 at 12:15 UTC ( [id://196638]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: mod_perl bug when reading post content with $|?
in thread mod_perl bug when reading post content with $|?

Actually, regarding my problem, it doesn't make a difference to localize $|.

My server now looks like this, but has the same hang

#!/usr/bin/perl -w use strict; local $| = 1; print "Content-Encoding: iso-8859-1\015\012", "Content-Type: text/plain\015\012", "\015\012"; warn "DEBUG: the content length is $ENV{CONTENT_LENGTH}\n"; my $returncode = read(STDIN, my $post_content, $ENV{CONTENT_LENGTH +}); warn "DEBUG: the read returncode was $returncode\n"; warn "DEBUG: Finished.";

Stas Bekman has summed up why one would use $| = 1 under mod_perl quite well in mod_perl: Performance Tuning.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://196638]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-28 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found