Project

General

Profile

Feature #799

mod_fastcgi + X-Sendfile -> mod_staticfile

Added by Anonymous over 13 years ago. Updated over 3 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_fastcgi
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Missing in 1.5.x:

Description

hey all,

in mod_fastcgi when used with X-LIGHTTPD-send-file it is now handeled in mod_staticfile (DIRECT).

here is the code:

tags/lighttpd-1.4.11/src/mod_fastcgi.c:2506


/* try to use mode->direct instead of the usual joblist */

fcgi_connection_close(srv, hctx);

/* tell the server to handle this file through mod_staticfile */
buffer_reset(con->uri.path);
buffer_reset(con->physical.path);

buffer_copy_string(con->uri.path, "");
buffer_copy_string_buffer(con->physical.path, ds->value);

con->mode = DIRECT;
joblist_append(srv, con); /* in case we come from the event-handler */

return HANDLER_FINISHED;

-- duke.amix


Files

patch-mod_fastcgi-delegate-x-sendfile (1.88 KB) patch-mod_fastcgi-delegate-x-sendfile patch for 1.4.19 (just added `buffer_free(packet.b)' before return) -- dliakh Anonymous, 2008-08-01 09:08

Related issues

Related to Feature #2017: X-Sendfile handoff to mod-static-file in 1.4.xFixed2009-07-01

Actions
Related to Feature #2076: X-sendfile should be able to set content-typeFixed2009-10-02

Actions
#1

Updated by gstrauss over 3 years ago

  • Related to Feature #2017: X-Sendfile handoff to mod-static-file in 1.4.x added
#2

Updated by gstrauss over 3 years ago

  • Related to Feature #2076: X-sendfile should be able to set content-type added
#3

Updated by gstrauss over 3 years ago

  • Description updated (diff)
  • Status changed from New to Patch Pending
  • Assignee deleted (jan)
  • Target version set to 1.4.40
#4

Updated by gstrauss over 3 years ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100

Also available in: Atom