Re: Apache is exiting....

2003-02-28 Thread Kyle Oppenheim
/mod/core.html#acceptmutex). Also, security errors such as errors from setuid(), setgid(), or getpwuid() may cause a fatal error. Finally, certain values of errno after the accept() call in child_main() will cause a fatal error (like ENETDOWN). -- Kyle Oppenheim Tellme Networks, Inc. http

Re: Apache::DBI and mod_perl 2

2003-02-18 Thread Kyle Oppenheim
[EMAIL PROTECTED] wrote: Any plans to make Apache::FakeRequest work well enough to make this possible? [EMAIL PROTECTED] wrote: As for mod_perl 1.0, I'm not sure, but if you can make it useful that would be cool. A while back Andrew Ho posted his script, apr, that is similar to

Re: Double execution of PerlRequire statement

2002-12-18 Thread Kyle Oppenheim
This behavior is documented in the guide... http://perl.apache.org/docs/1.0/guide/config.html#Apache_Restarts_Twice_On_S tart - kyle - Original Message - From: Andreas Rieke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 18, 2002 1:41 AM Subject: Double execution of

Re: Per Vhost @INC

2002-12-10 Thread Kyle Oppenheim
(at least those that you say matter) on every request. That's the best you can do unless Perl starts supporting some method of side-by-side versioning of modules. -- Kyle Oppenheim Tellme Networks, Inc. http://www.tellme.com - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent

Re: win32 testing only?

2002-12-05 Thread Kyle Oppenheim
The warning applies to mod_perl 1.x. The reason is that mod_perl 1.0 is single-threaded. In a UNIX environment, Apache (1.x) forks many child processes to handle requests which each have their own embedded Perl interpreter. In Win32, Apache has many threads to handle requests which all share a

Re: URI escaping question

2002-11-14 Thread Kyle Oppenheim
According to RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt) the reserved characters in the query component of a URI are ;, /, ?, :, @,, =, +, ,, and $. Apache::Util-escape_uri() does not escape :, @, , =, +, ,, or $. Something like the following should work: use URI::Escape qw(uri_escape);

Re: URI escaping question

2002-11-14 Thread Kyle Oppenheim
It looks like the default character class used by URI::Escape::uri_escape changed in version 1.16 to be exactly the same as the one I suggested. Older versions didn't escape the reserved characters. - Kyle - Original Message - From: Kyle Oppenheim [EMAIL PROTECTED] To: modperl List

Re: Using Perl END{} with Apache::Registry

2002-11-12 Thread Kyle Oppenheim
Although I can't reproduce the behavior you describe (I get a message in my error log plus the END block runs) I have seen something similar in the past when $@ gets reset by an intervening eval block before Apache::Registry gets a chance to log an error. In my case, I had a DESTROY handler on an

RE: conditional get

2002-10-28 Thread Kyle Oppenheim
ap_make_etag returns. However, ETag's without vlv's are pretty much backwards compatible. -- Kyle Oppenheim Tellme Networks, Inc. http://www.tellme.com

RE: conditional get

2002-10-25 Thread Kyle Oppenheim
) { print $file-get ('data'); } -- Kyle Oppenheim Tellme Networks, Inc. http://www.tellme.com -Original Message- From: Cristóvão Dalla Costa [mailto:cbraga;bsi.com.br] Sent: Friday, October 25, 2002 4:31 PM To: [EMAIL PROTECTED] Subject: conditional get Hi, I'm trying to get my

RE: Documentation for Apache::exit()?

2002-09-25 Thread Kyle Oppenheim
There are a few performance penalties when using Apache::Registry: * Scripts are compiled at first request instead of server start unless you use something like Apache::RegistryLoader. So, the first request per child will be a little bit slower and you don't get to share memory

RE: Documentation for Apache::exit()?

2002-09-24 Thread Kyle Oppenheim
If you're writing new code then I would recommend writing handlers and avoiding Apache::Registry altogether. I had been thinking about whether to do this. Why do you recommend avoiding Apache::Registry? Is there a performance penalty for using it? We sometimes use Apache::Registry

Re: top for apache? [OT]

2002-09-22 Thread Kyle Oppenheim
On Sat, 21 Sep 2002, Nigel Hamilton wrote: to see the number of children and then make guestimates of average per child memory consumption. I'm not sure what the equivalent for other operating systems is, but here's a Solaris tip for the archives... we use /usr/proc/bin/pmap to

RE: mod_perl error

2002-05-31 Thread Kyle Oppenheim
. For scripts, this warning is usually harmless. You can turn it off with the warnings pragma (Perl = 5.6.0): no warnings qw(redefine); -- Kyle Oppenheim Tellme Networks, Inc. http://www.tellme.com -Original Message- From: Boex,Matthew W. [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31

RE: [OT] Server error log says Accept mutex: sysvsem

2002-02-06 Thread Kyle Oppenheim
is really fast compared to pthreads on your OS). -- Kyle Oppenheim Tellme Networks, Inc. http://www.tellme.com

RE: Files problem, pulling my dam hair out

2001-11-29 Thread Kyle Oppenheim
Are you setting the content-type header correctly? You can add the correct content type a number of ways: - Adding DefaultType text/html to your httpd.conf - Using the AddType directive in httpd.conf to single out .pl files - Add .pl files to your mime types config file (pointed to by

RE: Cookie authentication

2001-11-16 Thread Kyle Oppenheim
Amazon seems to include your session id in the URL in addition to a cookie. I assume they do this to personalize when cookies are turned off and to prevent proxy caches from caching personalized pages and serving them to the wrong end-user. If you happen to type in a URL, they can revive your

RE: Apache-mod_perl

2001-11-16 Thread Kyle Oppenheim
That error is simply saying that your subroutines, my_start and p, aren't defined in the current scope. The Apache::ROOT::vswap... is the package name that Apache::Registry (or similar module, sounds like maybe EmbPerl in your case) generated when it compiled your script. Check to make sure

RE: no_cache()

2001-11-16 Thread Kyle Oppenheim
$r-no_cache(1) adds the headers Pragma: no-cache and Cache-control: no-cache. So, you need to call no_cache before calling $r-send_http_header. You can verify that it works by looking at the headers returned by the server when you request your document. If your browser is caching the page w/o

RE: Cookie authentication

2001-11-16 Thread Kyle Oppenheim
If you happen to type in a URL, they can revive your session from the cookie. Pretty nifty trick. This would seem to be a security hole to me. URLs appear in the logs of the server as well as any proxy servers along the way. If the URL contains reusuable auth info, anybody accessing

RE: Problem with DBD::Oracle with mod_perl

2001-08-23 Thread Kyle Oppenheim
We've seen this happen before. Unfortunately, I don't have a fix for you but I here's where we left off our chase... 1. ORA-03113: end-of-file on communication channel (for unknown reason, maybe a network blip?) 2. We have some code that will catch this error and call DBI-connect again. 3.

RE: Segfaults

2001-08-06 Thread Kyle Oppenheim
slots and perhaps force httpd to hit MaxClients if you segfault a lot. -- Kyle Oppenheim Tellme Networks, Inc. http://www.tellme.com -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 8:33 PM To: Kyle Oppenheim Cc: mod_perl list Subject: RE: Segfaults

RE: One more small Apache::Reload question

2001-08-01 Thread Kyle Oppenheim
Those warnings are normal, and you can use the warnings pragma to turn them off. (Although, I believe the warnings pragma only exists in Perl 5.6.0+). use warnings; no warnings qw(redefine); - Kyle -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf

RE: Apache::Reload???

2001-07-31 Thread Kyle Oppenheim
Apache::Reload works by performing a stat on every file in %INC and calling require for all the files that changed. It's quite possible that some of the files in %INC are using relative paths (often '.' is in @INC). So, Perl was able to load the file originally because the initial 'use' or

RE: no_cache pragma/cache-control headers : confusion

2001-04-04 Thread Kyle Oppenheim
to setting the no_cache flag in the request_rec. From the code in Apache.xs, it seems like setting $r-no_cache(0) will unset the flag, but not remove the headers. -- Kyle Oppenheim Tellme Networks, Inc. http://www.tellme.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED