RE: Trouble with sysread in modperl

2003-03-10 Thread Liu, Hui (GXS)
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

Re: Trouble with sysread in modperl

2003-03-08 Thread Stas Bekman
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

RE: Trouble with sysread in modperl

2003-03-08 Thread Liu, Hui (GXS)
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

Re: Trouble with sysread in modperl

2003-03-08 Thread Stas Bekman
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

RE: Trouble with sysread in modperl

2003-03-05 Thread Liu, Hui (GXS)
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

Re: Trouble with sysread in modperl

2003-03-04 Thread Stas Bekman
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

RE: mod_perl books (Was: RE: Trouble with sysread in modperl)

2003-03-04 Thread Liu, Hui (GXS)
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

Re: mod_perl books (Was: RE: Trouble with sysread in modperl)

2003-03-04 Thread Jordan Ward
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

Re: mod_perl books (Was: RE: Trouble with sysread in modperl)

2003-03-04 Thread Huili_Liu
EMAIL PROTECTED]> >cc: mod_perl list <[EMAIL PROTECTED]> Subject: mod_perl books (Was: RE: Trouble with sysread in modperl)

mod_perl books (Was: RE: Trouble with sysread in modperl)

2003-03-04 Thread Larry Leszczynski
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

RE: Trouble with sysread in modperl

2003-03-04 Thread Liu, Hui (GXS)
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

RE: Trouble with sysread in modperl

2003-03-04 Thread Larry Leszczynski
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

RE: Trouble with sysread in modperl

2003-03-04 Thread Liu, Hui (GXS)
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

Re: Trouble with sysread in modperl

2003-03-04 Thread Larry Leszczynski
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

Trouble with sysread in modperl

2003-03-04 Thread Liu, Hui (GXS)
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