[ python-Bugs-1227480 ] Two requests to one file are not done in parallel

SourceForge.net noreply at sourceforge.net
Thu Jun 30 08:20:22 CEST 2005


Bugs item #1227480, was opened at 2005-06-25 12:24
Message generated for change (Comment added) made by josiahcarlson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1227480&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Markus Franz (mmf1987)
Assigned to: Nobody/Anonymous (nobody)
Summary: Two requests to one file are not done in parallel

Initial Comment:
Hi! 

I am using Python for CGI scripting. I had a little cgi 
script (see the attached file).

I saved it as test1.py - and tried to load it over HTTP. So 
everything is fine.

But now I saw a very strange behaviour: I sent two 
parallel requests to 
the script (for example by sending two requests in two 
browser windows 
almost at the same time). 

My problem: The requests to the script seem NOT to be 
done in parallel: 
The first script prints "starting..." and after a short time 
"finished". And then in the other browser window the 
second request 
shows "starting...". 

But I expected that in both browser windows "starting" 
will be shown 
almost at the same time because the two requests are 
done in parallel. 

The strange behaviour goes on: 
If copied the test1.py and saved it as test2.py. Now I 
retried my test 
and sent two requests - but to these two identical files 
(that only 
differ in their filename). The the two requests seem to be 
done in 
parallel... 

(It tried my test on Fedora and Gentoo Linux, with 
Python 2.2 and 
Python 2.4, with different webservers (Apache and 
others), and with 
several different browsers - I always was the same.) 

I think the behaviour will be the same if I use my script 
on the command line...

Best regards,
Markus Franz

----------------------------------------------------------------------

Comment By: Josiah Carlson (josiahcarlson)
Date: 2005-06-29 23:20

Message:
Logged In: YES 
user_id=341410

I doubt that this is a Python issue.  It seems more likely
that your web servers are only willing to spawn a single CGI
process at any one time.

----------------------------------------------------------------------

Comment By: Sean Reifschneider (jafo)
Date: 2005-06-28 19:53

Message:
Logged In: YES 
user_id=81797

There's no uploaded file!  You have to check the
checkbox labeled "Check to Upload & Attach File"
when you upload a file.

Please try again.

(This is a SourceForge annoyance that we can do
nothing about. :-( )

----------------------------------------------------------------------

Comment By: Sean Reifschneider (jafo)
Date: 2005-06-28 19:51

Message:
Logged In: YES 
user_id=81797

There's no uploaded file!  You have to check the
checkbox labeled "Check to Upload & Attach File"
when you upload a file.

Please try again.

(This is a SourceForge annoyance that we can do
nothing about. :-( )

----------------------------------------------------------------------

Comment By: Sean Reifschneider (jafo)
Date: 2005-06-28 19:50

Message:
Logged In: YES 
user_id=81797

There's no uploaded file!  You have to check the
checkbox labeled "Check to Upload & Attach File"
when you upload a file.

Please try again.

(This is a SourceForge annoyance that we can do
nothing about. :-( )

----------------------------------------------------------------------

Comment By: Sean Reifschneider (jafo)
Date: 2005-06-28 19:46

Message:
Logged In: YES 
user_id=81797

There's no uploaded file!  You have to check the
checkbox labeled "Check to Upload & Attach File"
when you upload a file.

Please try again.

(This is a SourceForge annoyance that we can do
nothing about. :-( )

----------------------------------------------------------------------

Comment By: Sean Reifschneider (jafo)
Date: 2005-06-28 19:35

Message:
Logged In: YES 
user_id=81797

There's no uploaded file!  You have to check the
checkbox labeled "Check to Upload & Attach File"
when you upload a file.

Please try again.

(This is a SourceForge annoyance that we can do
nothing about. :-( )

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1227480&group_id=5470


More information about the Python-bugs-list mailing list