Mod_Perl2 getting started

2012-08-21 Thread joe
? Ideally a simple one module working code response handler that illustrates access to the parsed request, handles args as querystrings and Post data, uploads a file or two, and returns an html page to the requestor. Anyone have something like that? Thanks very much in advance, Joe N

Re: Mod_Perl2 getting started

2012-08-21 Thread joe
et? My server provider is installing the apahce + perl etc. so I'm partly at their mercy to get it correct. I just had no verified test cases that I could say to them: This *should* work if the installation is correct... Thanks agains, Joe N ## package respHandler; use strict;

RE: Experience running mod_perl2 with mpm_event on Solaris 11

2022-08-16 Thread joe
The build system for the CMS is on GitHub here: https://github.com/SunStarSys/cms. Full site builds clock in at around 500 MB/s on modern hardware (NVMe + 8 cores). But the real beauty is the Incremental Build Support in the product itself, so you only build what you changed. From: Joe

:Sealed subs for typed lexicals

2022-08-16 Thread joe
Here’s some more fun I’ve been grinding out for the mod_perl community. Unfortunately I haven’t resolved all the issues with using this stuff in a mod_perl+ithread runtime, but if you figure out the right incantation please let me know: https://sunstarsys.com/essays/perl7-sealed-lexicals

RE: Experience running mod_perl2 with mpm_event on Solaris 11

2022-08-16 Thread joe
To the best of my knowledge, the underlying problem with mod_perl+ithread is that it requires a reentrant malloc in libc. I haven’t tested modern Perl releases against Linux/FreeBSD, but Solaris 11 is rock solid with ithreads and event_mpm. From: Joe Schaefer Sent: Tuesday, August 16

RE: :Sealed subs for typed lexicals

2022-08-16 Thread joe
The build flags for Perl that I’m using on Solaris 11 are documented in the sealed.pm source code linked to from that webpage. From: j...@sunstarsys.com Sent: Tuesday, August 16, 2022 11:13 AM To: modperl@perl.apache.org Subject: :Sealed subs for typed lexicals Here’s some more fun I’ve

RE: Experience running mod_perl2 with mpm_event on Solaris 11

2022-08-16 Thread joe
underlying problem with mod_perl+ithread is that it requires a reentrant malloc in libc. I haven’t tested modern Perl releases against Linux/FreeBSD, but Solaris 11 is rock solid with ithreads and event_mpm. From: Joe Schaefer mailto:j...@sunstarsys.com> > Sent: Tuesday, August 16, 2022 12

RE: :Sealed subs for typed lexicals

2022-08-16 Thread joe
Benchmarks from last year (based on openoffice.org): https://www.youtube.com/watch?v=xr67QX6aMqU From: j...@sunstarsys.com Sent: Tuesday, August 16, 2022 12:31 PM To: modperl@perl.apache.org Subject: RE: :Sealed subs for typed lexicals The build flags for Perl that I’m using on Solaris 1

RE: Experience running mod_perl2 with mpm_event on Solaris 11

2022-08-16 Thread joe
We've been plagued by endless Segmentation Faults on non-Solaris systems, where the backtrace indicated the problem was in mod_perl -> Perl Code -> malloc (at the top of the frame). For a while I thought p5p fixed this in 5.30+ releases, but since nobody confirmed that suspicion I think the pro

RE: Experience running mod_perl2 with mpm_event on Solaris 11

2022-08-19 Thread joe
Whatever you do, do not use Perl's sbrk-based malloc implementation. It's a disaster with ithreads. -Original Message- From: Edward J. Sabol Sent: Tuesday, August 16, 2022 2:27 PM To: mod_perl list Subject: Re: Experience running mod_perl2 with mpm_event on Solaris 11 On Aug 16, 2022

RE: Experience running mod_perl2 with mpm_event on Solaris 11

2022-08-19 Thread joe
I discuss different Dynamic Programming Language thread support at https://sunstarsys.com/CMS/technology. The people in the Perl community at large who knock Perl5's ithreads support are doing nobody any favors. -Original Message- From: Edward J. Sabol Sent: Tuesday, August 16, 2022 2

RE: Experience running mod_perl2 with mpm_event on Solaris 11

2022-08-19 Thread joe
The problem is really confined to embedded uses of ithreads, because Perl itself will mutex-wrap the malloc calls. In httpd, so do all apr_pool_t calls to malloc. It's when the two memory management techniques are interacting that there is no application-level way to guard against thread conte

sealed.pm v4.0.0 is out

2022-08-27 Thread joe
See https://sunstarsys.com/essays/perl7-sealed-lexicals. For the full effect, you will need to build B::Generate with this patched version instead: https://github.com/SunStarSys/cms/blob/master/Generate.xs Sample mod_perl config + benchmarks: StartServers 2

Moving away from pure application server tiers

2022-08-28 Thread joe
There is an emerging industry trend towards consolidation an integration of webstack technology, and mod_perl + mpm_event is well-positioned to eat everyone else’s lunch in this space. The only real reason fastcgi-like frameworks won out over the past two decades is because threading was/is cra

h2c benchmarks with same Ubuntu tune as before

2022-08-29 Thread joe
h2load -n 10 -c 1000 -m 100 http://localhost/perl-script/enquiry.pl starting benchmark... spawning thread #0: 1000 total client(s). 10 total requests Application protocol: h2c progress: 10% done progress: 20% done progress: 30% done progress: 40% done progress: 50% done progress: 6

sealed v4.1.1 released to CPAN

2022-09-01 Thread joe
New project home dedicated to sealed.pm maintenance is at https://github.com/SunStarSys/sealed In the interest of saving more time and hassle, I put the best version I could come up with on CPAN, so you don’t need to clone the repository unless you want to benchmark the enquiry.pl ModPerl::Regi

APR/Perl related security automation software released.

2022-09-16 Thread joe
/joesuf4/home/blob/wsl/.zshenv Joe Schaefer, Ph.D. mailto:j...@sunstarsys.com> > 954.253.3732 SunStar Systems CMS <https://sunstarsys.com/CMS/> - The Original Markdown JAM Stack™ openpgp-digital-signature.asc Description: PGP signature

sealed v4.1.8 deep recursion bugfix is on CPAN

2022-09-17 Thread joe
Be sure to pick up the latest CPAN release of sealed.pm if you want to be able to run this test script successfully: https://github.com/SunStarSys/sealed/blob/master/test.sh Joe Schaefer, Ph.D. mailto:j...@sunstarsys.com> > 954.253.3732 SunStar Systems CMS <https://sunst

sealed v4.1.9 on CPAN

2022-10-24 Thread joe
Includes ModPerl::RegistryCookerSealed which will monkey-patch your ModPerl::Registry runtime to use :Sealed handlers for your registry scripts. Feedback/flames welcome. Am I beating a dead horse with mod_perl + mpm_event in 2022? Joe Schaefer, Ph.D. mailto:j...@sunstarsys.com

sealed.pm v4.3.1 is performing very well

2023-01-31 Thread joe
the speed bump on your core loops with OO-method calls in them. Joe Schaefer, Ph.D. < <mailto:j...@sunstarsys.com> j...@sunstarsys.com> 954.253.3732 <https://sunstarsys.com/orion/features> Orion - The Enterprise Jamstack WikiT

Re: Apache::Request->instance(undef)

2003-12-16 Thread Joe Schaefer
eq = $r->pnotes('apreq')) { return $apreq; } my $new_req = $class->new($r, @_); $r->pnotes('apreq', $new_req); return $new_req; } -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: [mp2] Apache::Cookie

2003-12-17 Thread Joe Schaefer
wrong or is this a known bug ?? Bug, previously unknown. > Any help ? It looks to me like there may be a problem in apreq_cookie.c (it may not be computing the "expires" date correctly for Netscape cookies). Which version of libapr are you using? -- Joe Schaefer -- Reporting bugs:

Re: [mp2] Apache::Cookie

2003-12-17 Thread Joe Schaefer
Joe Schaefer <[EMAIL PROTECTED]> writes: > It looks to me like there may be a problem in apreq_cookie.c > (it may not be computing the "expires" date correctly for Netscape > cookies). Which version of libapr are you using? If you're using the latest libapr, this

Re: [mp2] Apache::Cookie

2003-12-18 Thread Joe Schaefer
"Swen Schillig" <[EMAIL PROTECTED]> writes: > Joe > > Thanks for the patch the expiration is working fine now > even though the test fails :-) > > > t/testall -v > All APREQ Tests: > Cookie: ..F. >

Re: Mod Perl + Apache Error logs, extend DBILogger

2004-01-10 Thread Joe Schaefer
_can_ do what you want with mp2/apreq2, no matter what the content handler is (it doesn't even need to be perl-related). All you'd need to do is make sure mod_apreq's filter gets inserted before the content-handler takes over, and then Apache::Request will provide full access to th

[JOB] mod_perl Portal Installation/Customization

2004-01-15 Thread Joe Breeden
, --Joe Breeden -- Fake Shemp

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Joe Schaefer
;first) { $b->read(my $buffer); $full_image_data .= $buffer; $b->remove; } I'm sure there are better ways to use the brigade API though. The C API for brigades has a "flatten" function- does anyone know if mp2 has glue for that yet? -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: libapreq2 and FreeBSD

2004-01-16 Thread Joe Schaefer
ld be in apache2's module directory, and libapreq2 should be alongside libaprutil. -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Joe Schaefer
d, not APR::Bucket), but would not destroy the buckets within the brigade (hmm, does APR::Brigade have a DESTROY method?). The advantage here is you'd be able to accomplish this in one or two lines of perl, ie. my $upload_data = $req->upload('file')->bb->

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Joe Schaefer
Geoffrey Young <[EMAIL PROTECTED]> writes: > Joe Schaefer wrote: > > my $upload_data = $req->upload('file')->bb->flatten; > > oooh, nice. I can definitely see that being a useful idiom. Not sure if it'd be better for flatten to take $upload_

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Joe Schaefer
over APR::Brigade exposing flatten(). It is part of the C API after all, eh? Why shouldn't perl programmers have access to it? -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: File uploads using Apache:;request in mod_perl2

2004-01-16 Thread Joe Schaefer
od and marking the output as tainted. -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: [mp2] Apache Request and libapreq2 Cookie woes

2004-01-29 Thread Joe Schaefer
my $cookie = $self->{cookie_class}->new($self->apache_req->env,...); my $apr = $self->apache_req; # (no need to call new() here) -- Joe Schaefer -- Reporting bugs: 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

Re: [mp2] $r->status does not accept a valid parameter

2004-02-01 Thread Joe Schaefer
you either want $r->env->status(207); # env() yields Apache::RequestRec obj or $r->SUPER::status(207); # Apache::RequestRec is the base # class for Apache::Request (in mp2) Not sure if this solves your overall problem, but it should resolve this part of

Re: [mp2] Am I leaking memory?

2004-02-02 Thread Joe Schaefer
ble? No, your change is fine. AFAICT that comment pertains to an esoteric problem with object cleanup in libapreq/mp1, but the bug doesn't seem to be carried over into mp2/apreq2 (the apreq2 test suite has a test for it). -- Joe Schaefer -- Reporting bugs: http://perl.apache.org/b

Re: File uploads using Apache:;request in mod_perl2

2004-02-12 Thread Joe Schaefer
The size limit is currently 256K, but the size will be configurable in future versions. -- Joe Schaefer -- 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

Re: File uploads using Apache:;request in mod_perl2

2004-02-12 Thread Joe Schaefer
marked as tainted), 2) be sure "/path/to/local/$filename" is on the same device (filesystem) as your temporary directory (see the docs for Apache::Request::new regarding TEMP_DIR). 3) check the return value of $upload->link, if it's false (undef) then ther

Re: File uploads using Apache:;request in mod_perl2

2004-02-13 Thread Joe Schaefer
ice situation more gracefully (by making a full copy of the tempfile should the internal PerlLIO_link fail). -- Joe Schaefer -- 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

Re: File uploads using Apache:;request in mod_perl2

2004-02-13 Thread Joe Schaefer
ESS) XSRETURN_UNDEF; if (PerlLIO_link(fname, name) >= 0) XSRETURN_YES; else { apr_status_t s = apr_file_copy(fname, name, APR_OS_DEFAULT, apreq_env_pool(env)); if (s == APR_S

Re: Apache::Cookie and CGI::Cookie Interoperability

2004-03-10 Thread Joe Schaefer
se modules parse cookies, they're only looking at the *request* headers, since that's where the *incoming* cookies appear. IOW, you shouldn't try to set/bake cookies as a means of passing data from one handler to another one *inside the same request*. Cookies are a means of passing

Re: [mp2] Using MP2 to rewrite URLs based on POST Body data

2004-04-07 Thread Joe Schaefer
you need to be very careful about spooling the post data for the redirected url. This is basically what mod_apreq.c does in libapreq2, but it's pretty tricky. Perhaps convincing apreq-dev@ to support xml would be your best bet. -- Joe Schaefer -- Report problems: http://perl.apache.

Re: Problem with modperl2/apache2/apreq2 upload

2004-04-07 Thread Joe Schaefer
ly returning every param name on the form. Is that > right? That is correct. In apache1 the uploads formed a linked list internally, but that's no longer true in apreq2. In apreq2 $req->upload follows the same interface pattern as $req->param. -- Joe Schaefer -- R

Re: Problem with modperl2/apache2/apreq2 upload

2004-04-08 Thread Joe Schaefer
anything: $req->upload() works just like $req->param(), but it is restricted to uploads only. For example my $upload_table_ref = $req->upload; # APR::Table ref of uploads foreach my $name (keys %$upload_table_ref) { my @uploads = $req->upload($name); # Array of Apache::Upload

Re: Problem with modperl2/apache2/apreq2 upload

2004-04-08 Thread Joe Schaefer
table will only contain uploads, and since it's a tied hash, you can iterate over it using keys() or each(). -- Joe Schaefer -- 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

Re: Problem with modperl2/apache2/apreq2 upload

2004-04-08 Thread Joe Schaefer
e obviously doesn't because I'm trying to upload it... > > Do I need to ->bb and then write it? No, link() will do it for you; use current cvs or apply the patch. -- Joe Schaefer -- 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

Re: Missing submit button if after a file field

2004-04-20 Thread Joe Schaefer
. This is the reason why the subsequent "Submit" button is missing from the params: the parser interpreted its block as being the upload file's contents. The missing CRLF causes the parser to skip over the boundary string separating the (empty) file block from the "Submit" but

Re: building 64-bit

2004-05-14 Thread Joe Schaefer
amp; $PERL_DEBUG = Doesn't look like the cvs log is going to be of much help; perhaps checking the list archives in Feb/March 2000 will turn up something useful. -- Joe Schaefer -- 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

mp2 : Win32::GetShortPathName usage

2004-06-02 Thread Random Joe
Greetings, I am trying to build mod_perl 1.99_13 on Win 2000 (VC 6.0). In mod_perl-1.99_13\lib\ModPerl\BuildOptions.pm around lines 110 - 111 if (Apache::Build::WIN32()) { # MP_AP_PREFIX may not contain spaces require Win32; $val = Win32::GetShortPathName($val); } Why do we need to

Re: mp2 : Win32::GetShortPathName usage

2004-06-02 Thread Random Joe
--- Randy Kobes <[EMAIL PROTECTED]> wrote: > On Wed, 2 Jun 2004, Random Joe wrote: > > > Greetings, > > > > I am trying to build mod_perl 1.99_13 on Win 2000 > (VC > > 6.0). > > > > In mod_perl-1.99_13\lib\ModPerl\BuildOptions.pm > aroun

Re: mp2 : Win32::GetShortPathName usage

2004-06-02 Thread Random Joe
--- Randy Kobes <[EMAIL PROTECTED]> wrote: > On Wed, 2 Jun 2004, Random Joe wrote: > > > --- Randy Kobes <[EMAIL PROTECTED]> > wrote: > > > On Wed, 2 Jun 2004, Random Joe wrote: > > > > > > > Greetings, > > > > >

libapreq2-2.03-dev-rc3 available for testing

2004-06-11 Thread Joe Schaefer
pr_time_from_sec was needed for the conversion. - C API [Max Kellermann] Fix segfault caused by invalid %-escape sequence in query string. == Thanks! -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl

[ANNOUNCE] libapreq2-2.03-dev released

2004-06-12 Thread Joe Schaefer
The Apache Software Foundation and The Apache HTTP Server Project are pleased to announce the 2.03 developer release of libapreq2. The libapreq2-2.03_04-dev.tar.gz package has been released under the new Apache License version 2.0. The package is now available through the ASF mirrors http:/

Re: Apache::Request

2004-06-15 Thread Joe Schaefer
ember's Apachecon, and I don't expect Apache::Request to change much between now and then. Even so, now is a very good time to try it out, because you actually may want some things changed before we "stabilize" it :-). There are plenty of open issues in the httpd-apreq-2 ST

Re: Apache::Request

2004-06-17 Thread Joe Schaefer
uming > that you had mp2 installed into Apache2/ subdir). You may want to > report all the details to the apreq-dev mailing list. +1. The 1.X and 2.X versions of Apache::Request should happily coexist if mp2 was configured with MP_INST_APACHE2=1. Only the installed Unix manpages will o

Re: [mp2] losing POST vars with PerlOutputFilterHandler+mod_proxy

2004-06-17 Thread Joe Schaefer
chain, which means it'll call *your* input filter in order to get at the requested POST data. It looks like you managed to carefully avoid the infinite recursion in your example, but I'm not sure the underlying Apache::DECLINED perl magic is smart enough to handle the reentry- thus the 502. -- Joe Schaefer -- 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

Re: [mp2] losing POST vars with PerlOutputFilterHandler+mod_proxy

2004-06-18 Thread Joe Schaefer
Geoffrey Young <[EMAIL PROTECTED]> writes: > Eric J. Hansen wrote: > > Thanks, Joe! I implemented your suggestion (1), and the following > > works nicely... (added to my request filter) > > > > sub init : FilterInitHandler { > > my $f = shift;

Re: Apache::Request

2004-06-23 Thread Joe Schaefer
just link http://cvs.apache.org/~joes/libapreq2-2.04-dev/docs/html/modules.html A more permanent link on the apreq website will be available before the next release. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html Lis

Re: Apache::Request

2004-06-29 Thread Joe Schaefer
le. > > running perl Makefile.PL will not detect this dependency. It's supposed to, so let's try to fix that. -- Joe Schaefer -- 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

Re: Apache::Request

2004-06-29 Thread Joe Schaefer
personally involved in maintaining those tables. -- Joe Schaefer -- 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

Re: [mp2] APR::Table / Apache::Request usage question

2004-06-29 Thread Joe Schaefer
tter > construct I should be using? I haven't tested this, but it should be safe to forcibly re-bless Cparam> into an APR::Table object and do what you want (without breaking anything). Do not try this with $req->args or $req->body though. -- Joe Schaefer -- Report problems: htt

Re: Uploading files

2004-06-29 Thread Joe Schaefer
ed support for tempname to httpd-apreq-2's current-cvs. I don't know what sort of security implications you are concerned about, but perhaps the best thing to do is simply not use tempname, instead using link() - and then delete the linked file yourself once the external app is done with

Re: Uploading files

2004-06-30 Thread Joe Schaefer
Kemin Zhou <[EMAIL PROTECTED]> writes: > Joe Schaefer wrote: [...] > >Despite my past grumblings to the contrary, I've added support for > >tempname to httpd-apreq-2's current-cvs. [...] > Thanks for the help. The tempname is not available in mp2. You m

Re: [MP2 Bug] test case t/apr-ext/uuid.t failuer

2004-07-01 Thread Joe Schaefer
tforms. I've seen this on FreeBSD, for example. -- Joe Schaefer -- 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

Re: missing param from post using apache::request

2004-07-09 Thread Joe Schaefer
"Ken Burcham" <[EMAIL PROTECTED]> writes: > Hey guys, > > I submitted a bug report to [EMAIL PROTECTED] and it got returned > without comment... (maybe it was the wrong place?) so I guess i'll > post it here since I know Joe Schaefer monitors this lis

Re: missing param from post using apache::request

2004-07-09 Thread Joe Schaefer
ozilla to submit the form) yet. Changing the enctype just changes the parser. Since the mfd parser seems ok with your form-data, the problem likely lies in the urlencoded parser in libapreq2/src/apreq_parsers.c. Still digging though... any chance you could test this against current-cvs for ap

Re: missing param from post using apache::request

2004-07-09 Thread Joe Schaefer
Joe Schaefer <[EMAIL PROTECTED]> writes: [...] > Still digging though... Bug found in src/apreq_parsers.c:split_urlword. The problem is that apreq_decode can fail if a bucket ends in the middle of an escape sequence, which causes the parser to abort. This will be fixed before 2.

Re: CGI's Generate Pages With Numbers

2004-07-13 Thread Joe Schaefer
agent which doesn't understand it. -- Joe Schaefer -- 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

Re: libapreq2 upload gotcha

2004-07-22 Thread Joe Schaefer
<> operator to consume the buckets in $upload->io(). -- Joe Schaefer -- 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

Re: libapreq2 upload gotcha

2004-07-22 Thread Joe Schaefer
ed behind *it*. However, if you remove the file bucket from the brigade *before* you read from it, the morphed file bucket created during the read winds up in limbo, not in the original brigade. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apach

Re: libapreq2 upload gotcha

2004-07-22 Thread Joe Schaefer
upload('file')->bb(); > open(OUT,">/tmp/test_file"); > for (my $b = $bb->first; $b; $b = $bb->next($b)) { > $b->read(my $data); > print OUT $data; > } > close OUT; > &g

Re: libapreq2 upload gotcha

2004-07-22 Thread Joe Schaefer
Stas Bekman <[EMAIL PROTECTED]> writes: > Joe Schaefer wrote: > > Stas Bekman <[EMAIL PROTECTED]> writes: > > [...] > > > >>Moving $b->remove to the end makes the code horribly kludgy. It's > >>better to change the idiom to step through

Re: libapreq2 upload gotcha

2004-07-23 Thread Joe Schaefer
;ve called $b->read(), because read() has all kinds of side effects. The rest of this dialog seems to have taken us nowhere, so I'll just stop here. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiqu

Re: Accessing form mutiples

2004-07-30 Thread Joe Schaefer
using a slice there? @{$hash_ref}{$r->param($param)} = (); # values are now undef, not 0 You need the slice syntax to put $r->param($param) in list context. -- Joe Schaefer -- 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

Re: Raw header and body of HTTP request

2004-08-18 Thread Joe Schaefer
ou use Apache::Request in mp2, that's a bug in Apache::Request. [...] > Is there any way to retrieve the raw content (and headers) You could write a input filter that goes in front of HTTP_IN (protocol or connection type), which would see the byte stream in raw form (headers unparsed

Re: Raw header and body of HTTP request

2004-08-18 Thread Joe Schaefer
d work just fine. If not, please file a bug report. -- Joe Schaefer -- 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

Re: Raw header and body of HTTP request

2004-08-18 Thread Joe Schaefer
Joe Schaefer <[EMAIL PROTECTED]> writes: > Be sure you've got > > use Apache::RequestRecIO; ^^^ Sorry, typo- should be Apache::RequestIO. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/m

Re: Apache::Request multivalued parameters

2004-08-19 Thread Joe Schaefer
able to decode binary data with embedded '\0' values in them. If you can't bring yourself to that, just write your own converter: sub Vars { my $req = shift; map { $_ => join "\0", $req->param($_) } $req->param; } I hope this

Re: Apache::Request multivalued parameters

2004-08-19 Thread Joe Schaefer
side of a "s? Use $t as a hash-ref: print "$temp = $t->{$temp}\n"; That only prints the first $temp param (unless your iterating over the table with each(), which magically pulls the current $temp param). But you probably don't want $temp multivalued here unless

Re: libapreq2 versus everything else

2004-08-26 Thread Joe Schaefer
ase (more on that soon), so it's really up to the httpd community to determine whether or not httpd-2.2 users will benefit from it. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette:

Re: Missing POST data

2004-08-27 Thread Joe Schaefer
perl auth handler anywhere? If an auth handler has been coded to use CGI.pm, it will consume the POST data and your cgi scripts won't ever get it. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List et

Re: APR::Poll support -- first cut

2004-08-28 Thread Joe Schaefer
atch containing a copyright notice is problematic because it's no longer clear the author intends for it to be treated as a typical contribution to the project. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.htm

[PATCH] Fix Apache::DBI cleanup when multiple database handles are used

2004-08-31 Thread Joe Thomas
reentrant, and my problem goes away. Joe DBI.pm.patch Description: Binary data -- 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

Re: [mp2] a little OT, problem finding libapr

2004-09-02 Thread Joe Schaefer
d of the API docs? There are plenty of examples in those already, and the neat thing is that almost all of them are tested to work as documented. -- Joe Schaefer -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List eti

Apache::DBI patches

2004-09-02 Thread Joe Thomas
feedback from others is welcome. Thanks, Joe combinedpatch Description: Binary data -- 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

Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-07 Thread Joe Orton
sing will work on NetBSD: I wasn't surprised this fails on OpenBSD but I am surprised it fails on NetBSD. Can you compile and run: http://www.apache.org/~jorton/nonblock.c and post the output. (it would be useful if you could do this on OpenBSD too, Ken, for verification) joe -- Report pro

Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-07 Thread Joe Orton
orrect, this is currently fixed only for OpenBSD, and I'd prefer to see the output of the test case on NetBSD to see why it fails there before proceeding to use the same fix for that platform. joe -- 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

Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-09 Thread Joe Orton
nd to an ephemeral port on OpenBSD. So the apr_hints.m4 change is correct for this issue since the autoconf test can't work. joe -- 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

Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-09 Thread Joe Orton
On Thu, Sep 09, 2004 at 11:38:15AM +0400, [EMAIL PROTECTED] wrote: > > I wasn't surprised this fails on OpenBSD but I am surprised it fails on > > NetBSD. Can you compile and run: > > > > http://www.apache.org/~jorton/nonblock.c > > > > and post the output. (it would be useful if you could do t

Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-14 Thread Joe Orton
I can try and debug this, I've found a NetBSD machine and reproduced the failure. ./t/TEST -start-httpd doesn't work from the mod_perl test suite, is there a way to get that working? bash-2.05b$ ./t/TEST -start-httpd /tmp/jorton12/root/bin/httpd -d /tmp/jorton12/mod_perl-1.99_16/t -f /tmp/jorton

Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-14 Thread Joe Orton
On Thu, Sep 09, 2004 at 05:40:48PM +0400, [EMAIL PROTECTED] wrote: > > > > > > k714% ./nonblock > > > found port: 52984 > > > O_NONBLOCK is not set in the child. > > > > This is rather confusing, since it means that apparently the test is > > working OK, and O_NONBLOCK is *not* inherited across a

Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-15 Thread Joe Orton
On Wed, Sep 15, 2004 at 05:15:05PM +1000, Carl Brewer wrote: > Joe Orton wrote: > > >Oh well, having found a NetBSD box to testd this myself, the NetBSD > >fcntl() is being economical with the truth. It doesn't return > >O_NONBLOCK yet the socket really is

Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-17 Thread Joe Orton
On Fri, Sep 17, 2004 at 04:15:23PM -0400, Stas Bekman wrote: > So is that the right skip rule (hoping that 2.0.52 will fix NetBSD: > > my $should_skip = > ($^0 eq /^OpenBSD$/i && !need_min_apache_version('2.0.51')) || > ($^0 eq /^NetBSD$/i && !need_min_apache_version('2.0.52')); That log

Re: [mp2] NetBSD-1.6.2 modperl 1.99_16 httpd 2.0.51-dev make test errors

2004-09-23 Thread Joe Orton
On Wed, Sep 22, 2004 at 10:17:34PM -0400, Stas Bekman wrote: > Joe, as 2.0.52 is about to be released. Can that fix for NetBSD applied to > the 0.9 trunch (and head) if it does the trick? Thanks. It's been in both branches for a while so hopefully it will get picked up, yep. joe

Re: Threaded MPM and performance (was: Re: Variables in memory.)

2004-09-23 Thread Joe Schaefer
for a production environment, but it'd really help if someone with a good "slow-client" test environment benchmarked it to see if it helps. -- Joe Schaefer -- 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

Re: Threaded MPM and performance

2004-09-23 Thread Joe Schaefer
sponse handler to use two different perl interpreters? It looks to me like it is possible. -- Joe Schaefer -- 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

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-12 Thread Joe Orton
mod_perl.so > : mod_perl.so This problem is probably caused by a bogus libperl.a on your system somewhere. What does: ls -l /usr/lib/perl/5.6.1/CORE/libperl.* /usr/lib/libperl.* \ /usr/local/lib/libperl.* give? joe -- Report problems: http://perl.apache.org/bugs/ Mail list info: ht

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-13 Thread Joe Orton
On Wed, Oct 13, 2004 at 08:26:43AM -0400, Stas Bekman wrote: > Joe Orton wrote: > >This problem is probably caused by a bogus libperl.a on your system > >somewhere. What does: > > > >ls -l /usr/lib/perl/5.6.1/CORE/libperl.* /usr/lib/libperl.* \ > > /us

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-13 Thread Joe Orton
On Wed, Oct 13, 2004 at 05:02:30PM -0400, Stas Bekman wrote: > Joe Orton wrote: > >If -lperl was specified on the link line and ldd does not show a > >dependency on libperl.so.N, then barring a complete linker fubar, it > >must be the case that a libperl.a was linked statical

Re: SOAP::Lite, libapreq not playing together?

2004-09-30 Thread Joe Schaefer
gs, but I'm not sure. -- Joe Schaefer -- 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

Re: [mp2] Handler Order

2004-10-08 Thread Joe Orton
ook orderings don't matter. You'd have to right Perl bindings for this first of course! joe -- 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

  1   2   3   4   >