Forums » Development »
New module using linux fd transfer + websocket support
Added by aalap.shah almost 13 years ago
Hi,
I have developed a new module for lighttpd. This module uses linux's file descriptor transfer concept and utilizes that concept to optimize lighty. It also provides a websocket support.
I would like to open source this under BSD license.
Can someone guide me how do I open source this module and where?
Please find attached a document describing a detailed description and internals of my plugin.
Thanks,
Aalap..
Replies (3)
RE: New module using linux fd transfer + websocket support - Added by aalap.shah over 12 years ago
Hi All,
I Have uploaded by code at https://github.com/aalap-shah/lighttpd-mod_fd_transfer
And I have a created a explanatory blog at : http://lighttpd-websocket-fd-transfer.blogspot.in/
Feel free to mail me If you need any help with using it.
RE: New module using linux fd transfer + websocket support - Added by v2panchal over 4 years ago
Hi Aalap,
I am exploring this plugin module. I am facing some issues with it when using with https and posted same on below thread. Can you please help me how can we use this concept with https?
https://redmine.lighttpd.net/issues/3014
thanks
vivek panchal
RE: New module using linux fd transfer + websocket support - Added by gstrauss over 4 years ago
@v2panchal what problem are you trying to solve? Have you benchmarked it?
The encryption library overhead is much larger than the overhead of lighttpd being in the middle (versus transferring the fd).
It is highly unlikely to be worthwhile to make any attempt whatsoever to transfer the TLS state after the TLS handshake occurs in lighttpd.
If you want lighttpd to pass all traffic for a given socket, you can use mod_sockproxy, but at that point, why don't you simply have your backend process listen on the IP and port on which you want to handle requests? Alternatively, take a look at mod_sockproxy and its use of handle_connection_accept
hook. If you do not want to use mod_sockproxy, then you probably want to learn from mod_sockproxy and make use of handle_connection_accept
in your mod_fd_transfer port. You want to intercept the connection before mod_openssl picks up the connection in mod_openssl handle_connection_accept
hook.