Project

General

Profile

Actions

Bug #2259

closed

lighttpd does not send a 301 redirect immediately when proxying to Apache

Added by elvanor over 14 years ago. Updated about 9 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_proxy
Target version:
ASK QUESTIONS IN Forums:

Description

I am using lighttpd as a proxy to an Apache backend. In MediaWiki if a 301 is issued, the redirect takes 15 seconds to complete. This is because by default Apache's KeepAlive timeout is 15 seconds; so lighttpd waits for the connection to be closed, when it should send the redirect to the client right away.

If I lower the keep alive of Apache, then it takes that number of seconds for the redirect to come to the client (eg, setting the keep alive timeout to 5 seconds makes the redirect take 5 seconds), so the problem is clearly that lighttpd waits until the connection is closed.
A redirect taking 15 seconds is of course problematic.

Note that with a 302, this behavior does not happen.

Tested under vanilla-1.4.28.

Added by stbuehler over 14 years ago

Revision 74ce062f (diff)

Fix mod_proxy waiting for response even if content-length is 0 (fixes #2259)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2770 152afb58-edef-0310-8abb-c4023f1b3aa9

Added by stbuehler over 14 years ago

Revision 2770 (diff)

Fix mod_proxy waiting for response even if content-length is 0 (fixes #2259)

Actions

Also available in: Atom