php5-fpm does not allow concurrent requests

Bug #710985 reported by Axel H.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: php5

Ubuntu 10.10 php5-5.3.3-1ubuntu9.3 amd64

When using php5-fpm's fastcgi_finish_request() (see http://php.net/manual/en/install.fpm.php) the same client cannot request another php script until the first one has finished.

Example:
Assume php-fpm and a webserver using it is set up and located on localhost.

file1.php:
<?php

echo 'started processing';
// this will end the current fastcgi req.
fastcgi_finish_request();
// assume time consuming operations (i.e. video conversion)
sleep(120);

?>

file2.php:
<?php

echo 'access file two.';
?>

First access http://localhost/file1.php
This works as expected by showing "started processing" and request is finished immediately. PHP is processing in Background.
Now try to access http://localhost/file2.php from the same browser instance (like a normal user would access the next page by clicking a link). One would expect it will show "access file two." but instead the browser is busy until the 120seconds from file1.php's sleep are over. Also firing two Ajax request at the same time are not processed concurrent, the first is blocking the second.

Revision history for this message
Chuck Short (zulcss) wrote :

Unfortunately fpm wasnt supported on 10.10 so you are on your own for this bug.

chuck

Changed in php5 (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.