Project

General

Profile

Need help in writing a module for Lighhttpd/ffead-cpp

Added by sumeetchhetri about 2 years ago

Hi,

I am the author of the ffead-cpp framework (https://github.com/sumeetchhetri/ffead-cpp), am looking to write a module to enable the ffead-cpp framework to use lighthttpd server as an alternative to the nginx/apache servers. The documentation i found at https://redmine.lighttpd.net/projects/lighttpd/wiki/HowToWriteALighttpdPlugin is not sufficient for me to write a plugin to control the entire request/response journey through my framework. It would be great if someone can guide me with the right documentation and support on how to proceed with this.

Thanks,
Sumeet Chhetri


Replies (1)

RE: Need help in writing a module for Lighhttpd/ffead-cpp - Added by gstrauss about 2 years ago

(I redirected this forum post to the "Development" forum instead of the "Support" forum for what I hope is an obvious reason.)

Please provide more details as to what you are trying to do, e.g. what parts of HTTP request processing you might be trying to hook, for your framework. I took a quick look at the ffead-cpp modules for Apache and nginx and on the surface it would appear that those modules synchronously take the request, read any request body, perform some processing, and create a response. This sounds like just about any backend handler. Since your code operates synchronously, I would recommend interfacing to web servers via separate backend process(es) over unix domain socket (preferred) or TCP socket. Take a look at the code for lighttpd mod_proxy or lighttpd mod_wstunnel. A simple backend is lighttpd mod_scgi.

    (1-1/1)