summaryrefslogtreecommitdiffstats
path: root/package/uhttpd/src/uhttpd-lua.c
Commit message (Collapse)AuthorAgeFilesLines
* uhttpd: various changesJo-Philipp Wich2012-07-131-26/+9
| | | | | | | | | - remove unused variables - simply ignore command line args which belong to not enabled features - resolve peer address at accept() time, should solve (#11850) - remove floating point operations where possible SVN-Revision: 32704
* uhttpd: various fixesJo-Philipp Wich2012-07-091-31/+24
| | | | | | | | | - avoid closing descriptors before removing them from uloop (#11755, #11830) - do not auto-initialize ubus if no prefix is set (#11832) - remove extraneous client context pointer from cgi and lua states - code cleanups and debug message changes SVN-Revision: 32651
* uhttpd: do not subscribe to epoll write events Watch child read pipe end for ↵Jo-Philipp Wich2012-07-061-0/+1
| | | | | | data instead of relying on socket write notification to process cgi data, should lower cpu consumption during requests on weaker devices. SVN-Revision: 32640
* uhttpd: finish inherited uloop in forked childs, fixes misdispatched events ↵Jo-Philipp Wich2012-06-181-0/+3
| | | | | | leading to race conditions and bad memory accesses SVN-Revision: 32419
* uhttpd: remove some dead codeJo-Philipp Wich2012-06-021-7/+1
| | | | SVN-Revision: 32028
* uhttpd: add explicit stdin eof notification for Lua and CGI childsJo-Philipp Wich2012-06-021-1/+5
| | | | SVN-Revision: 32027
* uhttpd: - rewrite large parts of the server, use uloop event driven ↵Jo-Philipp Wich2012-05-281-291/+317
| | | | | | structure - support concurrent requests and make the upper limit configurable - implement initial version of HTTP-to-ubus JSON proxy and session.* namespace - add compile time support for debug information - code style changes - bump package revision SVN-Revision: 31931
* uhttpd: display errors in init script, code formatting changes, bump package ↵Jo-Philipp Wich2012-05-031-42/+43
| | | | | | version SVN-Revision: 31572
* uhttpd: added uhttpd.docrootJo-Philipp Wich2012-05-031-2/+10
| | | | | | | | | | | | | Passes the document-root to the Lua handler by placing it in uhttpd.docroot. It could alternatively be placed in env.DOCUMENT_ROOT which would more closely resemble the CGI protocol; but would mean that it is not available at the time when the handler-chunk is loaded but rather not until the handler is called, without any code savings. Signed-off-by: David Favro <openwrt@meta-dynamic.com> SVN-Revision: 31571
* Fixed: [PATCH 2/3] uhttpd URL-codec enhancements.Jo-Philipp Wich2016-03-201-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | My apologies, the 2nd of those patches had a syntax error -- that's what I get for making a last-minute edit, even to the comments, without testing! :-p Here is the corrected patch. -- David From d259cff104d2084455476b82e92a3a27524f4263 Mon Sep 17 00:00:00 2001 From: David Favro <openwrt@meta-dynamic.com> Date: Fri, 27 Apr 2012 14:17:52 -0400 Subject: [PATCH] uhttpd URL-codec enhancements. * uh_urlencode() and uh_urldecode() now return an error condition for buffer-overflow and malformed-encoding rather than normal return with corrupt or truncated data. As HTTP request processing is currently implemented, this causes a 404 HTTP status returned to the client, while 400 is more appropriate. * Exposed urlencode() to Lua. * Lua's uhttpd.urlencode() and .urldecode() now raise an error condition for buffer-overflow and malformed-encoding rather than normal return with incorrect data. SVN-Revision: 31570
* uhttpd: fix a signal related race condition exposed by LuCI on fast machinesJo-Philipp Wich2010-03-291-2/+3
| | | | SVN-Revision: 20573
* uhttpd: block SIGCHLD until it is expected (#6957)Jo-Philipp Wich2010-03-271-1/+1
| | | | SVN-Revision: 20513
* uhttpd: clear script timeout as soon as data is received from the childJo-Philipp Wich2010-03-271-5/+7
| | | | SVN-Revision: 20501
* uhttpd: - make script timeout configurable - catch SIGCHLD to properly ↵Jo-Philipp Wich2010-03-271-4/+8
| | | | | | interrupt select() - flag listen and client sockets as close-on-exec SVN-Revision: 20500
* add uhttpd (moved from LuCI trunk)Jo-Philipp Wich2010-03-251-0/+541
SVN-Revision: 20428