Hello All,
 
I'm using:
 
Windows Server 2003 Web Edition
Apache 1.3.27 for Windows
ActiveState Perl 5.8.8
mod_perl 1.29_01 dev
 
I started programing web scripts under mod_perl to increase performance and speed. Everything was working lovely and amazingly fast, but then i noticed an important detail: whenever a script takes to long for any reason, all other connections to the sript are paused until that script ends.
 
Example: A client request a script that will deliver a huge html page, and this user has a very slow connection, so it will take about 60 seconds for the server to end delivering the answer. At the same time, another client requests the same script but this user has a great connection. This last client wont receive any answer from the web server until the answer to the first slow client is complete.
 
I replicated the issue by inserting a sleep(60) at the beginning of one script and requesting it from different points at the same time. I sadly saw that only one client is served at a time.
 
This makes me think that something isn't right. Shouldn't Apache start different threads with few clients instead of using the same thread? Shouldn't mod_perl do the same? Does any one have suggestions to improve or fix this behavior?
 
I hope to find good help here. Thanks in advance. :-)
 
Paco.
 
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to