Commit Graph

49 Commits (856fba88d9e97dd743e44af553459f21c37cd809)

Author SHA1 Message Date
Jo-Philipp Wich 00f1b1d62a uhttpd: various changes
- 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
12 years ago
Jo-Philipp Wich 0000ce2271 uhttpd: retry parsing the CGI header until the buffer space is exhausted
SVN-Revision: 32662
12 years ago
Jo-Philipp Wich 86de034767 uhttpd: various fixes
- 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
12 years ago
Jo-Philipp Wich 1f2d5da887 uhttpd: do not subscribe to epoll write events Watch child read pipe end for data instead of relying on socket write notification to process cgi data, should lower cpu consumption during requests on weaker devices.
SVN-Revision: 32640
12 years ago
Jo-Philipp Wich c73b39fd30 uhttpd: finish inherited uloop in forked childs, fixes misdispatched events leading to race conditions and bad memory accesses
SVN-Revision: 32419
12 years ago
Jo-Philipp Wich 2cf72776d8 uhttpd: add explicit stdin eof notification for Lua and CGI childs
SVN-Revision: 32027
12 years ago
Jo-Philipp Wich 5aefe3b277 uhttpd: fix wrongly applied sizeof() leading to writing beyound end of buffer and subsequent data corruption (#11557)
SVN-Revision: 32005
12 years ago
Jo-Philipp Wich 022fa36b40 uhttpd: - rewrite large parts of the server, use uloop event driven 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
12 years ago
Jo-Philipp Wich 8e9d914343 uhttpd: display errors in init script, code formatting changes, bump package version
SVN-Revision: 31572
12 years ago
Jo-Philipp Wich 8533636d2d uhttpd: cope with variable number of spaces in header lines (#11079)
SVN-Revision: 30806
13 years ago
Jo-Philipp Wich 215239a470 uhttpd: prevent linking uhttpd binary against crypto libraries
SVN-Revision: 29152
13 years ago
Jo-Philipp Wich 44da6400cd uhttpd: cope with DES crypted passwd entries by not relying on a leading dollar sign to indicate a cipher
SVN-Revision: 28886
13 years ago
Nicolas Thill 75e186832a package/uhttpd: use new service wrapper
SVN-Revision: 28841
13 years ago
Jo-Philipp Wich 8189bd9260 uhttpd: provide rpath-link flag, thanks mazilo
SVN-Revision: 28792
13 years ago
Jo-Philipp Wich fcea88e3b5 uhttpd: fix Makefiles and linking of tls plugin
SVN-Revision: 28769
13 years ago
Jo-Philipp Wich 3c96dee342 uhttpd: bump version
SVN-Revision: 28762
13 years ago
Jo-Philipp Wich 3d035a6f6a uhttpd: rework CyaSSL and OpenSSL integration; move protected recv() and send() operations below the ssl layer - fixes hangs when accessing via https
SVN-Revision: 28761
13 years ago
Jo-Philipp Wich 12bbe8b2af uhttpd: fix possible CGI header line parsing beyound the empty line, thanks Linus Luessing for spotting it
SVN-Revision: 28254
13 years ago
Jo-Philipp Wich a6c02f8912 uhttpd: properly match mimetype entries which cover the whole filename (#8236)
SVN-Revision: 28160
13 years ago
Jo-Philipp Wich 7fce085a97 uhttpd: add "application/x-ns-proxy-autoconfig" mime type (#8236)
SVN-Revision: 28149
13 years ago
Jo-Philipp Wich 9c606eb4c5 uhttpd: pass feature flags (#9742)
SVN-Revision: 27689
13 years ago
Jo-Philipp Wich 6576d110d2 uhttpd: support building against openssl instead of cyassl, minor cleanups (#7827)
SVN-Revision: 27686
13 years ago
Jo-Philipp Wich 53a5beaca8 uhttpd: unblock signals in CGI childs, solves hanging ssh logout after server restart from within LuCI and similar problems
SVN-Revision: 27628
13 years ago
Daniel Dickinson 9e4843d0e3 uhttpd: Moved uhttpd to Network|Web Servers/Proxies submenu, just like all the other web serves and proxies from the packages feed
SVN-Revision: 26062
14 years ago
Jo-Philipp Wich 3b3e5b7a49 uhttpd: substitute "+" with space when using the -d flag, lazyload tls support
SVN-Revision: 25220
14 years ago
Jo-Philipp Wich f38a320e69 uhttpd: protect tcp receive operations with select, make tcp keep-alive optional (#8272)
SVN-Revision: 24952
14 years ago
Jo-Philipp Wich f5b3f741ce uhttpd: allow lowercase http header fields (#8513)
SVN-Revision: 24823
14 years ago
Jo-Philipp Wich 5931a158a4 uhttpd: redirect to same location with trailing slash appended if directories are requested
SVN-Revision: 23952
14 years ago
Jo-Philipp Wich 88db961cf0 uhttpd: add /etc/uhttpd.key and /etc/uhttpd.crt to conffile hints
SVN-Revision: 23260
14 years ago
Jo-Philipp Wich 1cb2abca8e add maintainer information
SVN-Revision: 23159
14 years ago
Jo-Philipp Wich 70dff7070e uhttpd: break tight loop when receiving eof during header reading (#7904)
SVN-Revision: 22988
14 years ago
Jo-Philipp Wich 93c38f2b86 uhttpd: fix segfault triggered by Basic Auth checking
SVN-Revision: 22805
14 years ago
Jo-Philipp Wich cbdeb30a1b uhttpd: - fix parsing of interpreter entries in the config file, fixes serving of static files as .cgi with X-Wrt - better cope with connection aborts, especially during header transfer - fix return value checking of TLS reads and writes, solves some blocking issues
SVN-Revision: 22692
14 years ago
Jo-Philipp Wich f2b534d341 uhttpd: - more robust handling of network failures on static file serving - support unlimited amount of authentication realms, listener and client sockets - support for interpreters (.php => /usr/bin/php-cgi)
SVN-Revision: 22630
14 years ago
Jo-Philipp Wich 2d175dcdce uhttpd: - abort file serving if client connection is lost (#7742) - don't send bad request headers twice
SVN-Revision: 22602
14 years ago
Jo-Philipp Wich 3d99f03082 uhttpd: add option to reject requests from RFC1918 IPs to public server IPs (DNS rebinding countermeasure)
SVN-Revision: 22589
14 years ago
Jo-Philipp Wich 39e013d003 uhttpd: fix build dependencies (#7674)
SVN-Revision: 22404
14 years ago
Jo-Philipp Wich b688fcaa5c uhttpd: - fix a compile warning - support custom index file names - support custom error pages (or cgi handler) - add option to disable directory listings - add REDIRECT_STATUS for CGI requests, fixes php-cgi
SVN-Revision: 22366
14 years ago
Jo-Philipp Wich 585ffa4941 uhttpd: - fix incorrect parsing of multiple listen options (#7458) - support PEM certificates for SSL
SVN-Revision: 21762
14 years ago
Nicolas Thill 338f1af5f3 bump release number for packages ahead of backfire in trunk
SVN-Revision: 21556
14 years ago
Jo-Philipp Wich 3df8df720a uhttpd: - ignore authentication realms that refer to user accounts with no password set yet (X-Wrt compatibility) - fix off-by-one in CGI header parsing, fixes cgi programs that emit bad header lines (AsteriskGUI compatibility) - bump version
SVN-Revision: 21121
14 years ago
Jo-Philipp Wich 20ef055c2f uhttpd: - make network timeout configurable, increase default to 30 seconds (#7067) - follow symlinks in docroot and add option to disable that - fix mimetype detection for files with combined extensions (.tar.gz, ...)
SVN-Revision: 20883
14 years ago
Jo-Philipp Wich a0a6400034 uhttpd: - cope with options instead of lists in uci config - fix compilation without tls (#7050) - bump to rev 7
SVN-Revision: 20668
14 years ago
Jo-Philipp Wich b95360d5bc uhttpd: fix a signal related race condition exposed by LuCI on fast machines
SVN-Revision: 20573
14 years ago
Jo-Philipp Wich 4bc74807e4 uhttpd: fix parameter parsing issue on avr32 and most likely ixp4xx
SVN-Revision: 20532
14 years ago
Jo-Philipp Wich 4172149f89 uhttpd: block SIGCHLD until it is expected (#6957)
SVN-Revision: 20513
14 years ago
Jo-Philipp Wich 161325ac4f uhttpd: clear script timeout as soon as data is received from the child
SVN-Revision: 20501
14 years ago
Jo-Philipp Wich 8c9b818a24 uhttpd: - make script timeout configurable - catch SIGCHLD to properly interrupt select() - flag listen and client sockets as close-on-exec
SVN-Revision: 20500
14 years ago
Jo-Philipp Wich 169642253f add uhttpd (moved from LuCI trunk)
SVN-Revision: 20428
14 years ago