durusmail: quixote-users: Overlaying a static directory
Overlaying a static directory
2005-04-11
2005-04-12
2005-04-12
2005-04-12
2005-04-13
2005-04-13
2005-04-14
2005-04-14
2005-04-14
2005-04-14
2005-04-14
2005-04-14
2005-04-14
2005-04-14
2005-04-14
2005-04-14
David Binger (3 parts)
2005-04-14
2005-04-14
2005-04-13
2005-04-14
2005-04-14
2005-04-13
SCGI util.
2005-04-12
2005-04-13
2005-04-13
2005-04-13
2005-04-13
Overlaying a static directory
David Binger
2005-04-13
On Apr 12, 2005, at 9:26 PM, mso@oz.net wrote:
>
> OK, I did a bunch of more tests.  The same problem happens with Apache
> 1.3.33 and mod_scgi 1.  Pressing Reload or Shift-Reload on any page in
> a
> StaticDirectory produces: (1) Internal Server Error, (2) the page
> without
> images, (3) the page correctly.  It keeps on cycling in approximately
> that
> order.

That seems to conclusively put my theories to rest.  Thanks for doing
the test.

>
> If you reload a dynamic page, the dynamic HTML always comes up but any
> dependent content (images, stylesheet) have a 50/50 chance of
> disappearing.  Sometimes the images and stylesheet disappear
> alternatingly.  (The dependent content are separate StaticFile
> instances
> in this case.)

I guess that means that the StaticDirectory class is off the hook,
right?

Here are some other wild questions:
What is your setting for max_children in the SCGI server?
Does this problem happen in a non https connection from the client?
With what options are you constructing StaticFile?
You did say this is only with those two browsers on Windows, right?

Another diagnostic option is to modify the HTTPResponse write method
to print headers.

> several seconds to render the object and sometimes it times out.  This
> happens only with Reload, not if you press Enter in the browser's
> address
> box.  (Testing on Firefox/Linux, server on same computer.)

Wierd.  I don't remember ever seeing that.

> I ran the SCGI server under strace to see why it's delaying.  The delay
> happens at a socket accept() call.  I don't know a lot of C but it
> looks
> like it has handled several requests by that time, maybe all of them.
> So
> I don't know if the problem is in the SCGI server, mod_scgi[1-2],
> packets
> coming too early or late, or what.

Is the request being sent to SCGI before, or after, the observed delay?


reply