Title: RE: Trouble with sysread in modperl
Stas,
We are using Oracle 9iAS (internet application server), it's bundled with the mod_perl version 1.26 (Perl 5.005). I hope this version of mod_perl is okay to use since Oracle will not support if we just upgrade the mod_perl to an
Liu, Hui (GXS) wrote:
Stas,
Does this mean read or sysread not work properly in mod_perl and
we should stay away from the two functions if we write perl code to work
with Apache server?
I haven't said that. I doubt so. It could be a bug in your code. I've suggested:
I suggest that you l
Title: RE: Trouble with sysread in modperl
Stas,
Does this mean read or sysread not work properly in mod_perl and we should stay away from the two functions if we write perl code to work with Apache server?
Regards,
Hui
-Original Message-
From: Stas Bekman [mailto:[EMAIL
Liu, Hui (GXS) wrote:
Stas,
Yes we tried reading and it works:
while ($readData = ) {
$buffer.= $readData;
$bufferLength = length($buffer);
..
}
But it's not working with sysread or read, here are the results
for read, the last line
Title: RE: Trouble with sysread in modperl
Stas,
Yes we tried reading and it works:
while ($readData = ) {
$buffer .= $readData;
$bufferLength = length($buffer);
..
}
But it's not working with sysread or read, here ar
Liu, Hui (GXS) wrote:
There appears to be a bug with the read and sysread functions when being
used in a loop to read STDIN. We're using a loop to read from STDIN in
4k blocks, and the read or sysread appears to work great until the very
last read to pick up the final partial block. Here is th
Title: RE: mod_perl books (Was: RE: Trouble with sysread in modperl)
Larry and Huili,
Thank you very much for the information and all your help. I just ordered a book called "mod_perl Developer's Cookbook" by Geoffrey Young, et al. from Amazon.com. I hope we will go from
questions.
I just wanted to say thanks, you've all been a great help :-)
~jordan
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "mod_perl list" <[EMAIL PROTECTED]>
Sent: Tuesday, March 04, 2003 3:39 PM
Subject: Re: mod_perl book
EMAIL
PROTECTED]>
>cc: mod_perl list <[EMAIL
PROTECTED]>
Subject: mod_perl books (Was: RE:
Trouble with sysread in modperl)
Hi Hui Liu -
> Larry,
>
> Thank you. I wonder which Mod_perl cook book you are referring to and
> where can we get them? I am very interested in details of recipe 3.8.
> This is our first time to port our perl scripts to Apache (we are
> using Apache:PerRun mode), and we are still learning.
The
Title: RE: Trouble with sysread in modperl
Larry,
Thank you. I wonder which Mod_perl cook book you are referring to and where can we get them? I am very interested in details of recipe 3.8. This is our first time to port our perl scripts to Apache (we are using Apache:PerRun mode), and we
Hi Hui Liu -
> > Not sure about that error, but by any chance are you trying to read
> > POSTed data from the request? If so, all you need to do is:
> >
> >my $content;
> >$r->read($content, $r->header_in('Content-length'));
> >
> > (mod_perl cookbook recipe 3.6)
>
> Thanks for the sug
Title: RE: Trouble with sysread in modperl
Larry,
Thanks for the suggestion. Does this mean if we have a 20MB file, this "read" will load the entire file into the memory?
Regards,
Hui Liu
-Original Message-
From: Larry Leszczynski [mailto:[EMAIL PROTECTED]]
Sen
Hello -
> There appears to be a bug with the read and sysread functions when being
> used in a loop to read STDIN. We're using a loop to read from STDIN in 4k
> blocks, and the read or sysread appears to work great until the very last
> read to pick up the final partial block.
[snip]
Not sure ab
Title: Trouble with sysread in modperl
There appears to be a bug with the read and sysread functions when being used in a loop to read STDIN. We're using a loop to read from STDIN in 4k blocks, and the read or sysread appears to work great until the very last read to pick up the
15 matches
Mail list logo