Re: cookies cookies cookies

2000-12-13 Thread Greg Stark
John Hurst <[EMAIL PROTECTED]> writes: > At 01:47 PM 12/12/00, Joshua Chamas wrote: > Greg Stark wrote: > > > > How do I reliably remove a cookie from a browser's memory? > > Then Josh said: > > What about setting the cookie with an expires d

cookies cookies cookies

2000-12-12 Thread Greg Stark
How do I reliably remove a cookie from a browser's memory? I've only just begun to experiment but it seems if I set the cookie to "" or undef Apache::ASP doesn't send the right headers to remove the cookie. (Actually undef seems to corrupt the cookie). I could just write a handler to set the head

Re: HTTP Mod_Perl mini-server

2000-12-03 Thread Greg Stark
Perrin Harkins <[EMAIL PROTECTED]> writes: > On Fri, 3 Nov 2000, Vivek Khera wrote: > > Lately I've been getting very interested in using solid-state disks > > for high-performance issues. They're expensive, but if you need that > > much speed, they're worth it. > > Are they? I tried one once,

Re: open(FH,'|qmail-inject') fails

2000-10-02 Thread Greg Stark
Doug MacEachern <[EMAIL PROTECTED]> writes: > On Mon, 25 Sep 2000, Stas Bekman wrote: > > > All you care about is to measure the time between email sending start and > > end (when the process continues on its execution flow). Why should one > > care about the details of internal implementation

ACCEPT_LANGUAGE leaking mysterious information

2000-09-12 Thread Greg Stark
[I could swear i sent this already and even got a couple responses but no answers, however I cannot find any such things in my mail logs or in the searchable list archives. If I did and there were answers posted if someone could point me to the result in the list archives that would be fine] In

Re: multilanguage site

2000-09-01 Thread Greg Stark
> >> can someone suggest me the best way to build a multilanguage web site > >> (english, french, ..). > >> I'm using Apache + mod_perl + Apache::asp (for applications) I'm really interested in what other people are doing here. We've just released our first cut at i18n and it's going fairly well

Re: Apache::Reload 0.04

2000-09-01 Thread Greg Stark
Stas Bekman <[EMAIL PROTECTED]> writes: > But adds an additional stat() call for each request, which might be not > desired for "some" sites... I know it's quite fast. See: > >http://thingy.kcilink.com/modperlguide/performance/Reducing_the_Number_of_stat_Ca.html > > But, yeah it's cool! In pr

Re: Apache::Perfmon 0.011

2000-08-21 Thread Greg Stark
Lupe Christoph <[EMAIL PROTECTED]> writes: > Hmm. Apache::Benchmark sounds more like a benchmark driver to me. > Apache::Instrumentation or so? Apache::Probe? Profile or even just Prof. I looked at this and really like the idea. Unfortunately I need to recompile my Apache to use it. What I th

problem with mod_proxy/mod_rewrite being used for the front-end proxy

2000-08-21 Thread Greg Stark
This isn't entirely on-topic but it's a solution often suggested for mod_perl users so I suspect there are other users here being bitten by the same problems. In fact the manner in which problems manifest are such that it's possible that many mod_perl users who are using mod_rewrite/mod_proxy to

Re: speed up/load balancing of session-based sites

2000-05-07 Thread Greg Stark
> > > Further, what are the standard ways to load balance a session-tracking > > > app across multiple servers when the sessions are stored in memory and a > > > given user has to be consistently sent back to the same machine? Can > > > round-robin DNS be counted on to send people back to the sa

Re: modproxy:modperl ratios...

2000-04-28 Thread Greg Stark
A few lessons on this arena: 1) Move your pictures to another server *even if you're using a proxy* Search back in the archives for my previous post on this topic. 2) If you use mod_proxy you can give it the same web root and have it serve some static objects itself instead of having to c

Re: Killing off children

2000-04-13 Thread Greg Stark
What state was the process in? There are only two states that a process can be in that won't respond to -9: Zombie (Z in ps), in which case the process is already dead and Apache didn't wait on it properly. This isn't a problem just ignore it unless you can reproduce it in which case report it

Re: $r->print delay?

2000-02-10 Thread Greg Stark
Ed Loehr <[EMAIL PROTECTED]> writes: > > [EMAIL PROTECTED] (Ed Loehr) wrote: > > >Any ideas on why would this output statement takes 15-20 seconds to > > >send a 120kb page to a browser on the same host? > > > > > >$| = 1; # Don't buffer anything...send it asap... > > >$r->print( $data

Re: Site unique MAC secret

2000-02-09 Thread Greg Stark
I don't understand, just take the first 1k of data from /dev/random and store that in a file somewhere. Protect that file appropriately, and use the contents of it. It's completely under your control and you can distribute it to share the secret across several load balanced hosts. Why would you

Re: Caching DBI handles with IPC?

2000-02-08 Thread Greg Stark
Saar Picker <[EMAIL PROTECTED]> writes: > Thanks for responding. We currently are cacheing DB connections > per-process. However, with 40-50 processes per server, and 4+ machines per > DB server, and 3-5 connections per process, you can see how the number of > connections per DB server gets rath

Re: Apache::Session, DBD::Oracle

2000-02-08 Thread Greg Stark
[EMAIL PROTECTED] (Robert Locke) writes: > - store this string into Oracle (type is LONG) You really really don't want to be using LONG btw. How large is the data you're really storing anyways? Oracle can do varchars up to 2k unlike some other pesky databases. LONGs have a number of pro

Re: squid performance

2000-01-29 Thread Greg Stark
Leslie Mikesell <[EMAIL PROTECTED]> writes: > The 'something happens' is the part I don't understand. On a unix > server, nothing one httpd process does should affect another > one's ability to serve up a static file quickly, mod_perl or > not. (Well, almost anyway). Welcome to the real world

Re: squid performance

2000-01-29 Thread Greg Stark
Leslie Mikesell <[EMAIL PROTECTED]> writes: > I agree that it is correct to serve images from a lightweight server > but I don't quite understand how these points relate. A proxy should > avoid the need to hit the backend server for static content if the > cache copy is current unless the user

Re: Run away processes

2000-01-20 Thread Greg Stark
Stas Bekman <[EMAIL PROTECTED]> writes: > > Is there a recommendation on how to catch & stop run away mod_perl programs > > in a way that's _not_ part of the run away program. Or is this even > > possible? Some type of watchdog, just like httpd.conf Timeout? > > Try Apache::SafeHang > http://

Re: squid performance

2000-01-20 Thread Greg Stark
"G.W. Haywood" <[EMAIL PROTECTED]> writes: > Would it be breaching any confidences to tell us how many > kilobyterequests per memorymegabyte or some other equally daft > dimensionless numbers? I assume the number you're looking for is an ideal ratio between the proxy and the backend server? No

Re: squid performance

2000-01-20 Thread Greg Stark
Vivek Khera <[EMAIL PROTECTED]> writes: > Squid does indeed cache and buffer the output like you describe. I > don't know if Apache does so, but in practice, it has not been an > issue for my site, which is quite busy (about 700k pages per month). > > I think if you can avoid hitting a mod_per

Re: oracle : The lowdown

2000-01-19 Thread Greg Stark
Matt Sergeant <[EMAIL PROTECTED]> writes: > Depends what the business is. If it is a serious business looking for VC I > would actually suspect the inverse is true: MySQL is underkill (I think I > just made that word up) due to its lack of transactions and other advanced > features (yes, these t

Re: ASP Cookieless Sessions (WAS Re: Apache::ASP)

2000-01-02 Thread Greg Stark
Joshua Chamas <[EMAIL PROTECTED]> writes: > It reoccured to me just now (back from a sessions methods discussion a long > time ago) that these query string cookies might show up in the referer logs > of other sites if you have offsite links on your session id pages. I tried a > workaround just n

Re: Problems building

1999-12-14 Thread Greg Stark
Doug MacEachern <[EMAIL PROTECTED]> writes: > > 2) when it tries to link it gets pages and pages of these errors: > > > > gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite `./apaci`\ > > -o httpd buildmark.o modules.o modules/perl/libperl.a >modules/standard/libstandard.a m

Re: Problems building

1999-11-08 Thread Greg Stark
Has nobody seen these problems? It seems strange, I had no trouble building 1.3.4+1.19 on Solaris but this is a fresh build on Linux with 1.3.9+1.21 and these errors don't seem to be configuration dependent, they look like generic problems with the build system. What could be wrong? Greg

Re: mod_perl-1.21 and apache-1.3.9

1999-11-08 Thread Greg Stark
I don't think it was Apache's DSO support that was broken, I had httpd working just fine with dynamic everything except mod_perl. mod_perl worked usually but seg faulted with one obscure xs package. I think other similar problems have been observed too. In this case though I think the problem is

Problems building

1999-11-03 Thread Greg Stark
I'm trying to update to 1.3.9+1.21 but I'm having various problems: 1) The makefile seems to try to run ../apaci even though perl is two levels deep, so it can't find ../apaci, it would have to be ../../apaci ===> src/modules/perl gcc -I. -I../../include -I../../include/regex -I../../include

Re: Memory problems

1999-11-03 Thread Greg Stark
[EMAIL PROTECTED] writes: > Thanks Greg > > > I strongly suggest you move the images to a separate hostname > > altogether. The > > proxy is a good idea but there are other useful effects of > > having a separate > > server altogether that I plan to write about in a separate > > message sometim

Re: Failing to reconnect after Oracle "shutdown abort" (Apache::DBI)

1999-11-03 Thread Greg Stark
Jeffrey Baker <[EMAIL PROTECTED]> writes: > That's what the driver handle's ping method is for. > > if (!$dbh->ping) { &reconnect; } I suppose I could do a ping before every page, but really that's only a kludgy work-around. Really I would want to do this before every single query, and the rig

Re: setting cookies?

1999-11-02 Thread Greg Stark
I think if you send a 401 in response to a request that contained auth data the user will typically see a "Authentication failed" box, which may 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. Voro

Re: Memory problems

1999-11-02 Thread Greg Stark
Stas Bekman <[EMAIL PROTECTED]> writes: > > I had huge problems yesterday. Our web site made it in to the Sunday > > Times and has had to serve 1/2 million request in the last 2 days. > > Oh, I thought there was a /. effect, now it's a sunday effect :) The original concept should be credited

Re: Failing to reconnect after Oracle "shutdown abort" (Apache::D BI)

1999-11-02 Thread Greg Stark
"Young, Geoffrey S." <[EMAIL PROTECTED]> writes: > > Incidentally, I have also noticed that on my Linux installation Oracle will > not shutdown (or shutdown abort) while any of the httpd processes have > persistent connections. That is, httpd must come down first for Oracle to > shutdown cleanl

Re: Failing to reconnect after Oracle "shutdown abort" (Apache::DBI)

1999-11-02 Thread Greg Stark
Tim Bunce <[EMAIL PROTECTED]> writes: > On Mon, Nov 01, 1999 at 09:01:48PM +, Tim Bunce wrote: > > Has anyone experienced a situation where a process (httpd for example) > > can't reconnect to Oracle after a "shutdown abort"? > > Thanks for your replies. > > The problem reported to me whic

Re: Failing to reconnect after Oracle "shutdown abort" (Apache::DBI)

1999-11-02 Thread Greg Stark
Tim Bunce <[EMAIL PROTECTED]> writes: > Has anyone experienced a situation where a process (httpd for example) > can't reconnect to Oracle after a "shutdown abort"? > > Tim. As far as I can tell we never get a clean reconnection after any sort of connection problem. I don't even think it takes

Re: Problem setting up mod_proxy_add_forward

1999-11-01 Thread Greg Stark
Vivek Khera <[EMAIL PROTECTED]> writes: > >>>>> "GS" == Greg Stark <[EMAIL PROTECTED]> writes: > > GS> Where was the proxy_add_forward patch again? > > It ain't a patch, its a module. The Apache module registry has a > pointer to

Re: Problem setting up mod_proxy_add_forward

1999-11-01 Thread Greg Stark
Where was the proxy_add_forward patch again? -- greg

Re: PATH env garbled in mod_perl 1.21 patch

1999-11-01 Thread Greg Stark
Was this ever resolved? I'm concerned because for Oracle the environment variable ORACLE_HOME is critical and I think the environment corruption explains some of our past database problems. Oleg Bartunov <[EMAIL PROTECTED]> writes: > On 31 Jul 1999, Chip Turner wrote: > > > Date: 31 Jul 199

Re: Profiling

1999-10-31 Thread Greg Stark
Rauznitz Balazs <[EMAIL PROTECTED]> writes: > Apache::DProf adds relatively small overhead as it only profiles at > function level. I found SmallProf to be very expensive; it at least > doubled the execution times, which is quite understandable if you want > line level profiling. Maybe a combina

Profiling

1999-10-31 Thread Greg Stark
Does anyone have any idea how much overhead Apache::DProf or Apache::SmallProf add? Will it be possible to use these on a production system without having a severe impact? And has anyone used DBIx::Profile with mod_perl ? All I keep getting is: Can't locate object method "printProfile" via pack

Re: How to know PID of DB backend ?

1999-10-30 Thread Greg Stark
Oleg Bartunov <[EMAIL PROTECTED]> writes: > Using ApacheDBI I keep persistent connections between > httpd and db. Now I want to know PIDs of httpd children and > database backend. For the httpd it's trivial but I don't > know where to get PID of db backend. > > Regards, > Oleg

Re: Apache mod_proxy inefficiencies

1999-10-30 Thread Greg Stark
Joshua Chamas <[EMAIL PROTECTED]> writes: > Someone already reported this double fork problem on the list, > and submitted a patch to mod_proxy, and I was able to get it > shortly thereafter from the apache CVS. It should be rolled > into the latest apache sources. The latest source this prob

Re: More on web application performance with DBI

1999-10-28 Thread Greg Stark
Michael Peppler <[EMAIL PROTECTED]> writes: > Greg Stark wrote: > > Actually not - Sybase creates a temporary stored proc for each prepared > statement, so it's equivalent to using stored procedures. Heh neat, is that DBD::Sybase or the server that's doing that?

Re: More on web application performance with DBI

1999-10-28 Thread Greg Stark
Tim Bunce <[EMAIL PROTECTED]> writes: > On Mon, Oct 18, 1999 at 07:08:09AM -0700, Michael Peppler wrote: > > Tim Bunce writes: > > > On Fri, Oct 15, 1999 at 11:42:29AM +0100, Matt Sergeant wrote: > > > > Sadly prepare_cached doesn't always work very well - at least not with > > > > Sybase (and

Re: OT: Is there a general question apache mailing list?

1999-10-27 Thread Greg Stark
Two things wrong, 1) as others have pointed out you need Options +Includes 2) you need a space before the --> otherwise it's misparsed (you must _not_ have a space in or after the > > Normally, on other web sites this is a painless procedure. The httpd.conf > is pretty much unmodified as

Re: internal_redirect and POST

1999-10-27 Thread Greg Stark
Dmitry Beransky <[EMAIL PROTECTED]> writes: > My apologies for continuing this topic, but I've been thinking some more > about this issue over the weekend. I'm still perplexed by this seemingly > arbitrary limitation on the number of times a request body can be read. It > seems that, at lea

Apache mod_proxy inefficiencies

1999-10-27 Thread Greg Stark
A lot of people have talked about running a proxy in front of your mod_perl processes, well a word of caution, maybe squid is more efficient, but mod_proxy does a double fork at the end of every request. This is part of the caching file garbage collection but it happens even if you don't have cac

Proxy example from guide doesn't work, security problem

1999-10-15 Thread Greg Stark
In the guide there's a cookie cutter example on setting up a proxy in front of the perl server. In it there's a critical rule that blocks incoming proxy requests so the only use of the proxy should be the intended use from rewrite rules. That rule is absolutely critical, otherwise your server can

Re: Another IE5 complaint

1999-10-02 Thread Greg Stark
"Joe Pearson" <[EMAIL PROTECTED]> writes: > Hi all, > > Maybe everyone already knows this, but I just discovered that > whenever a IE5 user visits a page in their "Favorites", IE5 also trys > to GET favicon.ico from the same site. Therefor I have hundreds of > "File does not exist:" errors in

Re: Problem with mod_perl processes spinning

1999-08-13 Thread Greg Stark
*** From dbi-users -- To unsubscribe, see the end of this message. *** Greg Stark <[EMAIL PROTECTED]> writes: > We're seeing httpd processes spinning with 100% cpu utilization and no system > calls in truss. This is on Solaris 2.5.1 and everything was working dandy &g

Problem with mod_perl processes spinning

1999-08-11 Thread Greg Stark
*** From dbi-users -- To unsubscribe, see the end of this message. *** We're seeing httpd processes spinning with 100% cpu utilization and no system calls in truss. This is on Solaris 2.5.1 and everything was working dandy until minutes ago. Is this name service related or are the "ns" stuf

Re: XML and Apache

1999-01-03 Thread Greg Stark
There was a database posted on freshmeat specifically designed for storing XML data. I'm not sure what that would mean but perhaps it would be the solution for your problem? "Anthony Gardner" <[EMAIL PROTECTED]> writes: > All, > > I have a problem. > > I want to use data in XML format and st