[mod_python] concurrent connections

Deron Meranda deron.meranda at gmail.com
Tue Jul 25 00:10:09 EDT 2006


On 7/24/06, Jay Knight <jhknight at gmail.com> wrote:
> 1.  I was just using firefox when I noticed this behavior.

Firefox (and most browsers for that matter) limit the
number of currently active connections they make.
In Firefox, type in the URL,

   about:config

Then look for these settings:

   network.http.max-connections
   network.http.max-connections-per-server

Of course you can use Graham's suggestion of using the
"ab" tool to really test things.

> I just now noticed that this behavior only happens when the same URL
> is called.  For example, if I have a file test.py in this directory,
> and call its url, the mptest.py is still used because it's defined as
> the handler.  If I try to load mptest.py and test.py at the same time,
> they will both return 5 seconds later, but calling the same URL twice
> will invoke the problem.

This may also be some browser limiting side-effect (of which I don't
know).  Since your httpd is using prefork, there should be little
chance for any blocking interaction on the web server side.

Use ab, or even open lots of terminals/shell prompts, and use
wget in each one.
-- 
Deron Meranda


More information about the Mod_python mailing list