From: Gonzalo A. <gon...@gm...> - 2008-03-27 13:24:12
|
On Wed, Mar 26, 2008 at 10:42 AM, Steffen Wendzel <cdp...@gm...> wrote: > Hi Gonzalo, > > > > your project is web-server-independent? > > Yes and No. I currently work on a webserver I call cchttpd (c-coders-httpd) > formance web applications in C/C++ (I currently run a web service based on > PHP and its performance sucks and I will have to buy bigger servers in future > if I get more users what is expensive). I also planed a full CMS written in C or > C++ because I really like these languages. > > My plan is to develop something very basic (like it seems you wanted too). This > can be the base for anything bigger (frameworks, CMS, whatever ...). It should > provide something like sessions, PHP's $_GET/$_POST and the like but it should > also work with other webservers (specially lighttpd -- I made some performance > tests and lighttpd was much faster than apache2.2). well, mod_c/EHTML is quite basic, and provides PHP's's $_GET/$_POST and $_FILES. File uploads are handled in a hacky way: they are saved in a local file (not memory), but the file is unlinked as soon as it is opened. Then, the filedescriptor is available for EHTML programmer. This way, if the process dies unexpectedly, the filesystem storage is reclaimed by the kernel. about web server performance (apache vs libhttpd): 1) does lighttpd provide something like pre-fork? (i.e., a process per concurrent request?). 2) Does lighttpd provide something like mod_rewrite? < ... > > > I just wanted a framework to provide some basic access to web server > > resources (read request, send response, check some aspects of the > > request -like http cookies-, session managment, and so on). > > yup, thats what I want (but for other servers too). Sounds nice. Do you find mod_c/EHTML to cover your needs? If that's the case, would you like to adapt mod_c/EHTML to work with lighttpd and/or other web server/s? If you require some changes to mod_c/EHTML, we are open to any suggestion. Regards, -- Gonzalo A. Arana |