close
The Wayback Machine - https://web.archive.org/web/20110807205643/https://bitbucket.org/bwmcadams/lighttpd-gridfs/src/

Brendan McAdams is sharing code with you

BERJAYA

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

bwmcadams / lighttpd-gridfs

A port of the nginx-gridfs plugin, to support lighttpd. See http://github.com/mdirolf/nginx-gridfs/ for the original project. I've based this on the mod_scgi/fastcgi/proxy code, so it supports multiple paths & extensions and should be extensible to other functionality easily.

Clone this repository (size: 30.3 KB): HTTPS / SSH
hg clone https://bitbucket.org/bwmcadams/lighttpd-gridfs
hg clone ssh://hg@bitbucket.org/bwmcadams/lighttpd-gridfs
Filename Size Date modified Message
README 6.3 KB - Mostly "finished". * URLDecoding works * MIME Detection works using libmagic * Returning files... uhm.. sort of works + Having some kind of issue where the first few bytes of the file are corrupted/munged somewhere between Mongo and the C code getting it back. I disabled mime_magic and it isn't causing the issue. It almost looks like something isn't getting enough memory allocated.
build-lighttpd-1_4_19.patch 5.4 KB Initial checkin, not the complete backend code yet but want to get a repository created. Working on some finish-up of the GridFS portion.
build_gridfs_config.py 264 B - Tracking down final elusive bug (crashy type)
gridfs_c_helpers.cpp 3.5 KB - Seems that the contents of the gridfile were acting weird because the string went out of scope. Now strdup() wrapping the creation of it's c_str() in the gridfile_t return struct. Which fixes the issue. Needs to be freed of course when done.
gridfs_c_helpers.h 1.1 KB - Mostly "finished". * URLDecoding works * MIME Detection works using libmagic * Returning files... uhm.. sort of works + Having some kind of issue where the first few bytes of the file are corrupted/munged somewhere between Mongo and the C code getting it back. I disabled mime_magic and it isn't causing the issue. It almost looks like something isn't getting enough memory allocated.
mod_gridfs.c 26.6 KB - Tracking down final elusive bug (crashy type)
test.conf 5.2 KB - Seems that the contents of the gridfile were acting weird because the string went out of scope. Now strdup() wrapping the creation of it's c_str() in the gridfile_t return struct. Which fixes the issue. Needs to be freed of course when done.