Project

General

Profile

Actions

Feature #799

closed

mod_fastcgi + X-Sendfile -> mod_staticfile

Added by Anonymous over 18 years ago. Updated over 8 years ago.

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

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 2 (0 open2 closed)

Related to Feature #2017: X-Sendfile handoff to mod-static-file in 1.4.xFixed2009-07-01Actions
Related to Feature #2076: X-sendfile should be able to set content-typeFixed2009-10-02Actions
Actions #1

Updated by gstrauss over 8 years ago

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

Updated by gstrauss over 8 years ago

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

Updated by gstrauss over 8 years ago

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

Updated by gstrauss over 8 years ago

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

Also available in: Atom