Slightly OT: DBD::Oracle::ping

2001-11-20 Thread Andrei A. Voropaev
Hi! In the code for DBD::Oracle::db::ping method there are lines local $SIG{__DIE__}; local $SIG{__WARN__}; As I understand these lines don't do anything though I guess they are supposed to suppress warning messages and possibly 'die' messages. Currently everytime when ping fails and w

Apache::DBI usage

2001-11-15 Thread Andrei A. Voropaev
Hi! Apache::DBI is great module of course because it makes things transparent. But it also makes things confusing. In few cases we have to open and close connection to database on each request (in particular Oracle on NT gives a lot of trouble with cached connections). Currently in such cases I

tracing memory usage for modules in mod_perl??

2001-10-24 Thread Andrei A. Voropaev
Hi! Just wanted to check if it is possible to trace memory usage of each mod_perl modules. It's kind of does not look very realistic, but I do not know the whole truth... Thanks Andrei

Re: Segmentation Fault

2001-09-19 Thread Andrei A. Voropaev
The funny part is that in our case we also get Segmentation fault from time to time but there's no coredump file. I even tried to attach gdb to apache child and wait for Segfault. I got it but I'm not sure I could understand it. Please see below for examples. The only thing I can say here that af

Re: mod_proxy and mod_perl in guide

2001-09-17 Thread Andrei A. Voropaev
; Vivek Khera wrote: > > > > >>>>> "AAV" == Andrei A Voropaev <[EMAIL PROTECTED]> writes: > > > > AAV> In our system we have to pass large PDF files thru mod_perl to > > AAV> proxy and we noticed that it takes the same time as sending it &g

mod_proxy and mod_perl in guide

2001-09-16 Thread Andrei A. Voropaev
Hi! I have one question. According to the Guide there's buffering feature of mod_proxy that allows to release heavy mod_perl process from delivering data over slow connection to the user. In our system we have to pass large PDF files thru mod_perl to proxy and we noticed that it takes the same t

Segmentation faults, some strace logs

2001-08-08 Thread Andrei A. Voropaev
Here's some output from strace on Linux Apache 1.13.19 with mod_perl 1.24 and perl 5.6.0 = 04:48:26 stat64("/proj/Web/EMIS/Mason/live/redirect", {st_mode=S_IFREG|0775, st_size=243, ...}) = 0 04:48:26 stat64("/proj/Web/EMIS/Mason/obj/live/redirect", {st_mode=S_IFREG|0644, st_

An idea on END_REQUEST handler

2000-11-22 Thread Andrei A. Voropaev
Hi! Everyone knows that END handlers in packages under mod_perl are executed only when apache terminates. But from time to time there might be a need to execute something when the Request is finished. In practice what I do in these cases is install PerlCleanupHandler which checks all loaded pack

Re: Make test error!!

2000-10-05 Thread Andrei A. Voropaev
Hi! Just to confirm that this is not a single case. I tried the same with apache_1.3.12 and it didn't work. Exactly the same error messages. Finally I gave up and compiled static version. That works without any problem. Andrei On Fri, Sep 15, 2000 at 10:45:32AM +0200, François Chenais wrote: >

Re: MS IE does not accept my cookies!

2000-04-29 Thread Andrei A. Voropaev
Actually I can confirm that some of IE browsers refuse to support some cookies. It sounds weird but I had a case when the broswer would ignore cookies with 'expires' and accept without it. Though replacing 'expire' with 'Max-Age' helped. The worst part is that the browser seemed to be "regular" I

Re: modperl success story

2000-01-14 Thread Andrei A. Voropaev
On Fri, Jan 14, 2000 at 12:34:00PM -0800, Ed Phillips wrote: > > >The troll vanisheth! > > ha! > > Reminds me of the Zen story of an old fisherman in a boat on a lake in a heavy can't >see your hands fog. He bumps into another boat, and shouts at the other guy, "Look >where you're going would

Re: Attempt to free unreferenced scalar (again)

2000-01-05 Thread Andrei A. Voropaev
Could that be somehow connected with the stuff done in modules? I have perl 5.004.04 but I didn't have that problem with the first version of my modules, but after I launched new version that problem became really "popular" I have quite a few of those warnings in my logs. The only big thing that I

Re: [Re: [Re: again - more then one PerlTransHandler]]

1999-12-22 Thread Andrei A. Voropaev
I believe this should be reflected in the documentation. Because after reading Eagle book one gets absolutely different understanding. It doesn't diffirentiate Perl stacked handlers and Apache handlers. From Doug's words (and from practice :) those are slightly different in the way how their retur

Re: Killing a child process

1999-12-19 Thread Andrei A. Voropaev
On Sun, Dec 19, 1999 at 02:12:11PM -0500, Andrei A. Voropaev wrote: > On Sat, Dec 18, 1999 at 12:02:27AM -0800, Bill Moseley wrote: > > > > I think the close() does the wait, so I don't really need to worry about > > reaping my children. > > You are right her

Re: Killing a child process

1999-12-19 Thread Andrei A. Voropaev
On Sat, Dec 18, 1999 at 12:02:27AM -0800, Bill Moseley wrote: > > I think the close() does the wait, so I don't really need to worry about > reaping my children. You are right here. close() does implicit wait on child to finish. I don't really understand why are you getting SIGPIPE. That signal

Re: again - more then one PerlTransHandler

1999-12-15 Thread Andrei A. Voropaev
It works perfectly well for me. I have modperl 1.21, apache 1.3.9 on RedHad linux (5.2). I install any number of TransHandlers and as long as each one of them returns DECLINED they are all executed. I tried both ways (one line and multiple lines) and everything has worked. Probably you just need

Re: FindBin/Apache::Registry bug

1999-12-09 Thread Andrei A. Voropaev
Don't use FindBin. It's not compatible with mod_perl since it uses BEGIN block which is executed only ones and for correct work it should be executed every time when the request comes. Andrei On Thu, Dec 09, 1999 at 12:03:56PM -0800, Joao Fonseca wrote: > This message was sent from Geocrawler.co

PerlRun and fork

1999-12-09 Thread Andrei A. Voropaev
Hi! I'm thinking about using PerlRun for some legacy scripts that don't use 'my' or use it in wrong places. But I hit one question that I'd like to know the answer for. PerlRun provides perl interperter that is built into Apache which saves time on starting new interpreter. Does it mean that it

Re: Redirect While Maintaining Environment?

1999-12-08 Thread Andrei A. Voropaev
Where do you get that sensitive information from? If it is originated on your own server then why can't CGI script get it without mod_perl? Or why can't you do internal redirect and put that information into query string? It doesn't go outside of your server anyway. If it is coming from client ma

Re: Associative Arrays problem

1999-12-08 Thread Andrei A. Voropaev
Since the broken code worked in regular perl (and it was supposed to work because $rech and %rech are different things) and it didn't want to work in emb perl then there must be something strange about it. Was it an error in testing code (ie. checking $rech->{keys} instead of $rech{keys} at the

Re: System calls to return data via STDOUT

1999-12-07 Thread Andrei A. Voropaev
It's better not to put this stuff into mod_perl because you'll have issues with memory etc. And the time you gain is nothing to compare with the time needed to start external process. Put it in regular CGI script. And to catch output from external program use standart methods like backticks, pip

Re: PerlFreshRestart and %INC

1999-12-06 Thread Andrei A. Voropaev
As far as I know connect_cached didn't show up untill latest versions of DBI. And unfortunately our production services don't use those versions. Though there's still a disclaimer saying that the behaviour is subject to change. Whatever. Can't I simply get rid of Apache::DBI since DBI itself offe

Re: fragment in $r->uri

1999-11-29 Thread Andrei A. Voropaev
Correct too. Though Apache::URI::fragment() is present and even documented :) Probably because some browsers pass this fragment to the server? Andrei On Mon, Nov 29, 1999 at 10:16:04AM -0800, Randal L. Schwartz wrote: > > "brian" == brian moseley <[EMAIL PROTECTED]> writes: > > brian> im re

Re: fragment in $r->uri

1999-11-29 Thread Andrei A. Voropaev
I've had the same problem. There's a mistake in the Eagle book when it states that $r->the_request() eq join(' ', $r->method, $r->uri, $r->protocol). Proper way to access fragment as well as query_string is to use my $uri = $r->parsed_uri(); my $fragment = $uri->fragment(); Andrei On Mon, Nov 2

Re: HTTP 1.0 / 1.1

1999-11-29 Thread Andrei A. Voropaev
When a browser claims that it supports HTTP/1.1 it doesn't mean that it uses it for each request. I believe that in general case browser always uses HTTP/1.0 which is logged in apache log. I'm not sure how to make the same browser to use HTTP/1.1 as default protocol. I guess you shouldn't because

Re: directoryindex is not retrieved

1999-11-25 Thread Andrei A. Voropaev
On Thu, Nov 25, 1999 at 08:18:04PM +0100, Eric Cholet wrote: > > Pushing a handler for the current phase ? Is this legal ? I wonder. > I don't remember it for sure and don't have the book around to check but I think this is used for content handling and even given as an example of chained handl

Re: directoryindex is not retrieved

1999-11-25 Thread Andrei A. Voropaev
Well, since nobody replied I started digging myself. Here's what I found. The problem below is caused by push_handlers method in Authorization handler. You can reproduce it if you use the following set up. --- module package Apache::MasterAuth; use Apache::Const

directoryindex is not retrieved

1999-11-23 Thread Andrei A. Voropaev
Hi! I have problem with index files for directories not being read under mod_perl. According to mod_perl guide this happened for those who "declared mod_perl configuration inside a section for all files matching to *.pl. The problem has gone away after placing the usage of mod_perl in a - sectio

Duplicated emails from mod_perl list

1999-11-22 Thread Andrei A. Voropaev
Hi! Probably this is off-topic. But it's about the list itself. Why do I get OLD emails from time to time. Today I got about 7 or 8 of those. I'm absolutely positive that I've seen them once before. Some of those emails are dated Nov. 16th This happened 2 or 3 times already so I decided to ask.

Re: perl variable in configs for few virtual servers

1999-11-16 Thread Andrei A. Voropaev
It's Apache 1.3.9, mod_perl 1.21 on Linux. The only change I have is patch for correcting PATH enviroment corruption provided by Doug. Andrei On Tue, Nov 16, 1999 at 05:29:46PM +0100, Eric Cholet wrote: > Which version of mod_perl are you using, 1.21 or the CVS version perhaps? > > > Hi! > >

Re: PATH corruption in mod_perl

1999-11-16 Thread Andrei A. Voropaev
I've used the patch sent by Doug. --- mod_perl.h 1999/08/03 22:56:09 1.84 +++ mod_perl.h 1999/08/04 02:53:38 @@ -286,9 +286,10 @@ #define mp_setenv(key, val) \ { \ int klen = strlen(key); \ -hv_store(GvHV(envgv), key, klen, newSVpv(val,0), FALSE); \ +SV *sv = ne

Re: perl variable in configs for few virtual servers

1999-11-16 Thread Andrei A. Voropaev
Well, sorry. I've forgotten to put 'my' in front of those varibles in the example. In the actual code it is there (I use strict :) The problem is not there. Andrei On Tue, Nov 16, 1999 at 05:02:49PM +0100, Gerald Richter wrote: > > In Myhandler::handler I do > > $myvar1 = $r->dir_config('MyVa

perl variable in configs for few virtual servers

1999-11-16 Thread Andrei A. Voropaev
Hi! I've encountered very interesting problem. When I set some variable using PerlSetVar in configuration files for different virtual servers they seem to be available to ALL of those virtual servers. Here's details to clarify. In httpd.conf I have ServerName myhost1.domain.com DocumentRoot

Re: setting cookies?

1999-11-03 Thread Andrei A. Voropaev
y look bad > compared to just getting the password dialog. > > Actually I couldn't get this to work a while back, but I didn't try very hard. > > > "Andrei A. Voropaev" <[EMAIL PROTECTED]> writes: > > > On Mon, Nov 01, 1999 at 05:03:58PM -0500,

Re: setting cookies?

1999-11-02 Thread Andrei A. Voropaev
On Mon, Nov 01, 1999 at 05:03:58PM -0500, Robin Berjon wrote: > I've never tried this but doesn't sending two 401s in a row for the same > document have the auth popup appear again ? I feel like this topic gets slightly confusing. Browser sends request, gets 401 back, asks user for username and p

Re: Intentional Premature Finish in an Apache Module

1999-10-28 Thread Andrei A. Voropaev
On Thu, Oct 28, 1999 at 02:07:12PM -0400, Ken Y. Clark wrote: > > when i tried to assign my error intothe pnotes hash with the comma operator > e.g., "$r->pnotes(ERROR_NAME =>$err)" > i got errors, and i don't know why. Oh, that's because everything to the left of => is treated as string un

[andrei@securities.com: Installing handler. Anonymous subs vs code returning ref]

1999-10-15 Thread Andrei A. Voropaev
Sorry. Contrary to the replies I couldn't install handler as arbitrary perl code that returns reference to code. Only "sub {your code here}" actually works. Everything else logs error when attempting to fetch the URL. Andrei - Forwarded message from "Andrei A. Voropae

Installing handler. Anonymous subs vs code returning ref

1999-10-15 Thread Andrei A. Voropaev
Hi! Quick question. It's mentioned in the book that I may provide anonymous subroutine as a handler. Does it have to be sub declaration or any arbitrary perl code that return reference to sub would do? Andrei --

Re: internal_redirect and POST

1999-10-08 Thread Andrei A. Voropaev
On Fri, Oct 08, 1999 at 05:05:41PM +0200, Eric Cholet wrote: > On Friday, October 08, 1999 3:35 PM, Andrei A. Voropaev > > Well. I wish you have also mentioned how to unset $r->content() > > because it reads content only once. Second time returns undef. The > > But y

Re: internal_redirect and POST

1999-10-08 Thread Andrei A. Voropaev
On Fri, Oct 08, 1999 at 09:39:30AM +0200, Eric Cholet wrote: > On Friday, October 08, 1999 3:35 AM, Dmitry Beransky [SMTP:[EMAIL PROTECTED]] wrote: > > I've been playing around with internal redirects of POST requests. They > > seem to work fine as long as I don't call Apache::content() or any o

Re: Guide addition?

1999-10-07 Thread Andrei A. Voropaev
On Thu, Oct 07, 1999 at 03:59:37PM +0200, Stas Bekman wrote: > That's almost correct, what it does is taken a script sitting at > URI /perl/test.pl: > > print "Content-type: text/plain\n\n" > print "mod_perl rules!\n" > > perl actually sees it as: > > package Apache::ROOT::perl::test_2e

Re: perl variable in configs for few virtual servers

1999-01-17 Thread Andrei A. Voropaev
at is why variables from it are available in all virtual servers. As usually I should have RTFM before complaining :) Andrei On Fri, Nov 19, 1999 at 10:09:33AM -0500, Andrei A. Voropaev wrote: > Let me try that. > > Andrei > > On Fri, Nov 19, 1999 at 03:43:40PM +0100, Eric Chol

Re: embperl-intermittant sig11 seg faults

1999-01-16 Thread Andrei A. Voropaev
I get those too even without embperl. The same symptoms. Everything is fine untill child is terminated. Then "child pid x exit signal Segmentation fault (11)" appears in error log. I was said that this disappears after upgrade to perl 5.005_3. Couldn't try it because can't upgrade. But looks l

Re: Attempt to free unreferenced scalar during global destruction.

1999-01-03 Thread Andrei A. Voropaev
to upgrade from perl 5.004_04 to 5.005_03. Am I correct? Thank you. Andrei On Thu, Nov 04, 1999 at 03:55:20PM -0500, Andrei A. Voropaev wrote: > Hi! > > For some reason I get lots of > > 'Attempt to free unreferenced scalar during global destruction.' > > in my

Attempt to free unreferenced scalar during global destruction.

1999-01-02 Thread Andrei A. Voropaev
Hi! For some reason I get lots of 'Attempt to free unreferenced scalar during global destruction.' in my error log. Any one can give me a pointer where to search for the problem? Thank you Andrei --