Re: [mp2] my filter crashes on reverse proxied content

2004-03-26 Thread Stas Bekman
Hi Michael, That looks very similar to the mp2 test. t/filter/TestFilter/both_str_req_proxy.pm Since you didn't run the mp2 test suite at all I'd suggest to start there. I'd be happy to run a few cases, if you can point me to some documentation. Absolutely: http://perl.apache.org/docs/2.0/os/

Re: [mp2] my filter crashes on reverse proxied content

2004-03-26 Thread Perrin Harkins
On Fri, 2004-03-26 at 04:46, Michael Franken wrote: > Thanks for the note, but I'm not sure whether the documentation is > consistent. Besides saying "The SetHandler directive is only relevant > for response phase handlers", the documentation says to use > 'SetHandler modperl' when you want to use

Re: [mp2] my filter crashes on reverse proxied content

2004-03-26 Thread Michael Franken
Hi Stas, Stas Bekman wrote: Michael Franken wrote: Hi Stas, I understand that going thru 40 KB is a pain. Unfortunately I can't seem to get the test suite running, the Perl Makefile does not produce a valid makefile, and I can't seem to fix it (something with DIRFILESEP). As I told you I'm a

Re: [mp2] my filter crashes on reverse proxied content

2004-03-26 Thread Michael Franken
Stas, Perrin, Thanks for the note, but I'm not sure whether the documentation is consistent. Besides saying "The SetHandler directive is only relevant for response phase handlers", the documentation says to use 'SetHandler modperl' when you want to use PerlSetVar and $r->dir_config, which is w

Re: [mp2] my filter crashes on reverse proxied content

2004-03-25 Thread Stas Bekman
Michael Franken wrote: Hi Stas, I understand that going thru 40 KB is a pain. Unfortunately I can't seem to get the test suite running, the Perl Makefile does not produce a valid makefile, and I can't seem to fix it (something with DIRFILESEP). As I told you I'm a little handicapped on my Win32

Re: [mp2] my filter crashes on reverse proxied content

2004-03-25 Thread Stas Bekman
Perrin Harkins wrote: On Thu, 2004-03-25 at 06:45, Michael Franken wrote: SetHandler modperl PerlOutputFilterHandler Mike::Filter PerlSetVar FilterSource localhost:86 PerlAddVar FilterDestination mail.franken.ws:80 Silly question: is this right, using SetHandler modperl

Re: [mp2] my filter crashes on reverse proxied content

2004-03-25 Thread Perrin Harkins
On Thu, 2004-03-25 at 06:45, Michael Franken wrote: > > SetHandler modperl > PerlOutputFilterHandler Mike::Filter > PerlSetVar FilterSource localhost:86 > PerlAddVar FilterDestination mail.franken.ws:80 > Silly question: is this right, using SetHandler modperl when

Re: [mp2] my filter crashes on reverse proxied content

2004-03-25 Thread Michael Franken
Hi Stas, I understand that going thru 40 KB is a pain. Unfortunately I can't seem to get the test suite running, the Perl Makefile does not produce a valid makefile, and I can't seem to fix it (something with DIRFILESEP). As I told you I'm a little handicapped on my Win32/cygwin machine, as I'

Re: [mp2] my filter crashes on reverse proxied content

2004-03-22 Thread Stas Bekman
Michael Franken wrote: Hi Stas, I've just setup a simple environment with a pretty vanilla config. I get respons as before, but it crashes after a few responses. The funny thing I noticed is that the first time I launched the new server, I got no errors form my reverse proxied mod_perl'd pages.

Re: [mp2] my filter crashes on reverse proxied content

2004-03-22 Thread Michael Franken
FYI: When I launch my debugger at the moment Apache crashes, the debugger shows: 'Apache.exe': Loaded 'D:\ApacheT\bin\Apache.exe', Symbols loaded. 'Apache.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'Apache.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded. '

Re: [mp2] my filter crashes on reverse proxied content

2004-03-22 Thread Michael Franken
Hi Stas, I've just setup a simple environment with a pretty vanilla config. I get respons as before, but it crashes after a few responses. The funny thing I noticed is that the first time I launched the new server, I got no errors form my reverse proxied mod_perl'd pages. Here's my httpd.conf:

Re: [mp2] my filter crashes on reverse proxied content

2004-03-22 Thread Michael Franken
Hi Stas, First of all thanks for your quick and great response. I am using Perl 5.8.3, yes. And I'm happy to provide you with a testcase. Note though that i'm a little handicapped on my Win32 box. I do have make/gcc/etc on cygwin, but my current setup has been built using binaries only. I'm n

Re: [mp2] my filter crashes on reverse proxied content

2004-03-22 Thread Stas Bekman
Michael Franken wrote: Hi Stas, That was close, I got a few responses, but then it crashed again: [...] Thanks for the testcase, what's next? Can we see the relevant parts of your config? Have you used by chance 'PerlOptions +Parent' switches? Ideally, it'd be nice if you could prepare for us a

Re: [mp2] my filter crashes on reverse proxied content

2004-03-22 Thread Michael Franken
Hi Stas, That was close, I got a few responses, but then it crashed again: [Mon Mar 22 21:20:39 2004] [debug] proxy_http.c(109): proxy: HTTP: canonicalising URL //mda.demon.nl:86/exchange/ [Mon Mar 22 21:20:39 2004] [debug] mod_proxy.c(459): Trying to run scheme_handler [Mon Mar 22 21:20:39 200

Re: [mp2] my filter crashes on reverse proxied content

2004-03-22 Thread Stas Bekman
Michael Franken wrote: Hi Stas, Good idea, but I've tested it, and it doesn't help (I created on alias in my host file with the same length, yes). and if you drop the dir_config calls and use hardcoded $src, $dst? __ Stas Bekman

Re: [mp2] my filter crashes on reverse proxied content

2004-03-22 Thread Michael Franken
Hi Stas, Good idea, but I've tested it, and it doesn't help (I created on alias in my host file with the same length, yes). regards,    Michael Stas Bekman wrote: Geoffrey Young wrote: I have written a OutputFilter that finds a string in a response and replaces the string w

Re: [mp2] my filter crashes on reverse proxied content

2004-03-22 Thread Stas Bekman
Geoffrey Young wrote: I have written a OutputFilter that finds a string in a response and replaces the string with another. It works fine with static files, but not on response from a reverse proxy, and that is just what I want to achieve. I'm trying to run my Outlook Web Access backend behind an

Re: [mp2] my filter crashes on reverse proxied content

2004-03-22 Thread Michael Franken
Hi Geoff, I can't really say whether Apache::Clean works. I replaced my Filter with Apache::Clean, and it worked. However it only gets fired on the first page, since my filter is intended to fix the urls, which happen to be on the first page in a baseref. Mike Geoffrey Young wrote:

Re: [mp2] my filter crashes on reverse proxied content

2004-03-22 Thread Geoffrey Young
> I have written a OutputFilter that finds a string in a response and > replaces the string with another. It works fine with static files, but > not on response from a reverse proxy, and that is just what I want to > achieve. I'm trying to run my Outlook Web Access backend behind an > Apache fron

Re: [mp2] my filter crashes on reverse proxied content

2004-03-22 Thread Michael Franken
Hi Randy, Just did upgrade my Perl, but it didn't help much, I get different error messages, but seems to be same problem. Randy Kobes wrote: On Mon, 22 Mar 2004, Michael Franken wrote: The problem seems to be related to threading (free to wrong pool) on Win32. As can be read from article

Re: [mp2] my filter crashes on reverse proxied content

2004-03-22 Thread Randy Kobes
On Mon, 22 Mar 2004, Michael Franken wrote: > The problem seems to be related to threading (free to wrong pool) on > Win32. As can be read from article > http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2004-01/msg00748.html. > > I've set my threads to 1, and the problem seems gone. Of cour

Re: [mp2] my filter crashes on reverse proxied content

2004-03-22 Thread Michael Franken
The problem seems to be related to threading (free to wrong pool) on Win32. As can be read from article http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2004-01/msg00748.html. I've set my threads to 1, and the problem seems gone. Of course this is not a solution, since the server now is