--- Stas Bekman <[EMAIL PROTECTED]> wrote: > Scot Martin wrote: > > Apache 2.0.52 mod_perl 1.99_16 Perl 5.8.5 > > OpenSSL 0.9.7d Solaris 8 > > <snip> > > > > The problem I'm having is that my largest request > is > > 349024 bytes and when I send it (using Perl 5.8.5 > > w/libwww) I can see the first 11584 bytes come in > > (using truss), but then nothing further. > > <snip> > > > > I tried various ways of reading data from the > client > > and ended up using the Bucket Brigade approach so > I > > can see everything as it comes through the front > door, > > all to no avail. > > <snip>
> > Scot, please run with the IO tracing to see what > exactly happens behind > the scenese and what goes wrong. This is > accomplished with: > PerlTrace o > http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlTrace_ Stas, This helped point to the problem, thank you very much. After the request was populated into $r, but before doing anything with it, I was, for reasons I can't think of now, sending the xml header, then reading the request, then printing the reply. This all worked fine until I had a large request, then this is what I see with I/O tracing: mpxs_Apache__RequestRec_print: 39 bytes [<?xml version="1.0" encoding="UTF-8" ?>] mpxs_Apache__RequestRec_print: (flush) 39 bytes [<?xml version="1.0" encoding="UTF-8" ?>] modperl_request_read: wanted 348402b, read 11584b [<t0:Envelope xmlns:t0="http://...] Once I did the right thing and delayed sending the header until I had a reply to send, all was well. It seems to me like what I did shouldn't truncate the request, but I realize I had things out of sequence. > > Also take a look at various tests under > modperl-2.0/t which exercise the > IO including sending of big requests. for example > t/response/TestApache/read2.pm and > t/response/TestApache/read.pm > > Also does the problem go away if ssl is not used? > > -- -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html