Project

General

Profile

Actions

Bug #1108

closed

FCGI: Low speed connections

Added by Anonymous almost 18 years ago. Updated over 16 years ago.

Status:
Invalid
Priority:
Urgent
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:

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

Actions #1

Updated by jan almost 18 years ago

formated the bug-report

Actions #2

Updated by Anonymous almost 18 years ago

Exactly the SAME problem i face.
http://trac.lighttpd.net/trac/ticket/1196

Actions #3

Updated by stbuehler about 17 years ago

  • 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?

Actions #4

Updated by stbuehler over 16 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom