Bug #1108
FCGI: Low speed connections
| Status: | Invalid | Start: | ||
| Priority: | Urgent | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | core | |||
| Target version: | - | |||
| Pending: | No |
Resolution: | invalid |
|
| Patch available: |
Description
Hi,
I have a problem in my server where I use lighttpd with FCGI i.e.
download connection is very slow :(
All files I send via php uses x-send-file.
Via php because I need to make some steps before file will be sent:
1. Check if user have access to download file
2. Add some columns to mysql db table
3. If first 2 steps return true then I run the following command:
header("X-LIGHTTPD-send-file:file");
Some config code:
fastcgi.server = ( ".php" =>
(
(
"bin-path" => "/usr/local/php4/bin/php",
"socket" => "/tmp/php-cgi.socket",
"max-procs" => 2,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "16",
"PHP_FCGI_MAX_REQUESTS" => "10000"
),
"allow-x-send-file" => "enable",
"broken-scriptfilename" => "enable"
)
)
)
server.max-keep-alive-requests = 40
server.max-keep-alive-idle = 3
server.max-read-idle = 30
server.max-write-idle = 180
server.max-fds = 4096
server.stat-cache-engine = "simple"
server.event-handler = "linux-sysepoll"
server.network-backend = "linux-sendfile"
If Lighttpd restart then speed is high. After a few hours speed will be slow again. :(
In my log file I see all time the same errors:
(server.c.1148) NOTE: a request for index.php?.... timed out after writing 140160 bytes. We waited 180 seconds. If this a problem increase server.max-write-idle
-- vadim.chumak
History
05/26/2007 02:58 AM - Anonymous
Exactly the SAME problem i face.
http://trac.lighttpd.net/trac/ticket/1196
02/22/2008 01:56 PM - stbuehler
- Status changed from New to Fixed
- Resolution set to invalid
http://trac.lighttpd.net/trac/wiki/server.max-write-idleDetails
After some hours more people are back to your server to dl stuff?