mod_cache & mod_proxy disables connection.kbytes-per-second

9 views
Skip to first unread message

rebelvideo

unread,
Jun 24, 2008, 4:10:36 AM6/24/08
to mod_cache
Hi

It appears that the combination of mod_cache & mod_proxy disables
connection.kbytes-per-second

I have searched through the source code of version 1.5 and can't see
the connection.

Does anyone have an idea of what could be going on?

Your help would be appreciated

Chris

Hongyu

unread,
Jun 24, 2008, 4:59:43 AM6/24/08
to mod_...@googlegroups.com
I had tested 'connection.kbytes-per-second' on lighttpd 1.4 with mod_cache/mod_proxy, it worked

and I think 'connection.kbytes-per-second' works on lighttpd 1.5 with mod_cache/mod_proxy_core too.

Chris Hamono

unread,
Jun 26, 2008, 12:04:30 AM6/26/08
to mod_...@googlegroups.com
Hi thanks for responding so fast as usual

I have found the problem and it is unrelated to mod_cache and mod_proxy. The problem is the bandwidth limiting in lighttpd is extremely poorly implemented.

If using a backend such as linux-sendfile as much of the file is sent as possible in one pass. This bypasses the bandwidth limiting function altogether. Instead on the next pass and subsequent passes, lighty stops sending anything out until the bandwidth limit is satisfied. this can mean very long pauses resulting in no data being transmitted and the clients disconnecting and reconnecting.

It is a very undesirable system


Chris

2008/6/24 Hongyu <shel...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages