summaryrefslogtreecommitdiff
path: root/networking/httpd.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* httpd: stop reading headers using 1-byte read()Denis Vlasenko2007-08-181-39/+56
| | | | | | | | | | | get_line 73 105 +32 httpd_main 769 766 -3 send_cgi_and_exit 1583 1577 -6 send_headers 449 432 -17 handle_incoming_and_exit 2217 2172 -45 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/4 up/down: 32/-71) Total: -39 bytes
* make standalone httpd work on NOMMU machinesDenis Vlasenko2007-08-181-49/+91
|
* get rid of server_ and accepted_socket globals.Denis Vlasenko2007-08-181-57/+38
| | | | | | | | | | get_line 74 73 -1 log_and_exit 33 32 -1 send_headers 457 449 -8 httpd_main 906 892 -14 handle_incoming_and_exit 2136 2113 -23 send_cgi_and_exit 1743 1583 -160
* httpd shrink and logging update, part 7 of 7Denis Vlasenko2007-08-171-107/+104
| | | | | | | | | | | | | text data bss dec hex filename 9836 0 0 9836 266c busybox.t1/networking/httpd.o.orig 9724 0 0 9724 25fc busybox.t2/networking/httpd.o 9657 0 0 9657 25b9 busybox.t3/networking/httpd.o 9342 0 0 9342 247e busybox.t4/networking/httpd.o 9342 0 0 9342 247e busybox.t5/networking/httpd.o 9262 0 0 9262 242e busybox.t6/networking/httpd.o 9283 0 0 9283 2443 busybox.t7/networking/httpd.o 9334 0 0 9334 2476 busybox.t8/networking/httpd.o
* httpd shrink and logging update, part 6 of 7Denis Vlasenko2007-08-171-29/+46
| | | | | | | | | | | | | text data bss dec hex filename 9836 0 0 9836 266c busybox.t1/networking/httpd.o.orig 9724 0 0 9724 25fc busybox.t2/networking/httpd.o 9657 0 0 9657 25b9 busybox.t3/networking/httpd.o 9342 0 0 9342 247e busybox.t4/networking/httpd.o 9342 0 0 9342 247e busybox.t5/networking/httpd.o 9262 0 0 9262 242e busybox.t6/networking/httpd.o 9283 0 0 9283 2443 busybox.t7/networking/httpd.o 9334 0 0 9334 2476 busybox.t8/networking/httpd.o
* httpd shrink and logging update, part 5 of 7Denis Vlasenko2007-08-171-214/+198
| | | | | | | | | | | | | text data bss dec hex filename 9836 0 0 9836 266c busybox.t1/networking/httpd.o.orig 9724 0 0 9724 25fc busybox.t2/networking/httpd.o 9657 0 0 9657 25b9 busybox.t3/networking/httpd.o 9342 0 0 9342 247e busybox.t4/networking/httpd.o 9342 0 0 9342 247e busybox.t5/networking/httpd.o 9262 0 0 9262 242e busybox.t6/networking/httpd.o 9283 0 0 9283 2443 busybox.t7/networking/httpd.o 9334 0 0 9334 2476 busybox.t8/networking/httpd.o
* httpd shrink and logging update, part 4 of 7Denis Vlasenko2007-08-171-186/+181
| | | | | | | | | | | | | text data bss dec hex filename 9836 0 0 9836 266c busybox.t1/networking/httpd.o.orig 9724 0 0 9724 25fc busybox.t2/networking/httpd.o 9657 0 0 9657 25b9 busybox.t3/networking/httpd.o 9342 0 0 9342 247e busybox.t4/networking/httpd.o 9342 0 0 9342 247e busybox.t5/networking/httpd.o 9262 0 0 9262 242e busybox.t6/networking/httpd.o 9283 0 0 9283 2443 busybox.t7/networking/httpd.o 9334 0 0 9334 2476 busybox.t8/networking/httpd.o
* httpd shrink and logging update, part 3 of 7Denis Vlasenko2007-08-171-148/+107
| | | | | | | | | | | | | text data bss dec hex filename 9836 0 0 9836 266c busybox.t1/networking/httpd.o.orig 9724 0 0 9724 25fc busybox.t2/networking/httpd.o 9657 0 0 9657 25b9 busybox.t3/networking/httpd.o 9342 0 0 9342 247e busybox.t4/networking/httpd.o 9342 0 0 9342 247e busybox.t5/networking/httpd.o 9262 0 0 9262 242e busybox.t6/networking/httpd.o 9283 0 0 9283 2443 busybox.t7/networking/httpd.o 9334 0 0 9334 2476 busybox.t8/networking/httpd.o
* httpd shrink and logging update, part 2 of 7Denis Vlasenko2007-08-171-92/+82
| | | | | | | | | | | | | text data bss dec hex filename 9836 0 0 9836 266c busybox.t1/networking/httpd.o.orig 9724 0 0 9724 25fc busybox.t2/networking/httpd.o 9657 0 0 9657 25b9 busybox.t3/networking/httpd.o 9342 0 0 9342 247e busybox.t4/networking/httpd.o 9342 0 0 9342 247e busybox.t5/networking/httpd.o 9262 0 0 9262 242e busybox.t6/networking/httpd.o 9283 0 0 9283 2443 busybox.t7/networking/httpd.o 9334 0 0 9334 2476 busybox.t8/networking/httpd.o
* whitespace fixes, no code changesDenis Vlasenko2007-08-161-1/+1
|
* httpd: add -v[v]: prints client addresses, HTTP codes returned [and URLs]Denis Vlasenko2007-08-141-126/+116
| | | | | | | | | | | | | | | get_line - 70 +70 packed_usage 22811 22863 +52 handle_incoming_and_exit 2246 2277 +31 httpd_main 1141 1155 +14 sendHeaders 489 482 -7 getLine 77 - -77 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 3/1 up/down: 167/-84) Total: 83 bytes text data bss dec hex filename 774335 1058 11092 786485 c0035 busybox_old 774447 1058 11092 786597 c00a5 busybox_unstripped
* httpd: extend -p PORT to -p [IP[v6]:]PORTDenis Vlasenko2007-08-141-123/+96
| | | | | | | | | | | | | | | | | | | httpd: comment out strange code which "closes connection properly" (isnt exit(0) good enough?) handle_incoming_and_exit - 2246 +2246 httpd_main 1116 1141 +25 getLine 75 77 +2 packed_usage 22827 22811 -16 parse_conf 1303 1284 -19 shutdown 32 - -32 handleIncoming 2578 - -2578 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 2/2 up/down: 2273/-2645) Total: -372 bytes text data bss dec hex filename 774704 1058 11092 786854 c01a6 busybox_old 774335 1058 11092 786485 c0035 busybox_unstripped
* httpd: round down sendfile byte count to 64kDenis Vlasenko2007-08-131-1/+2
| | | | | *: style fixes
* httpd: sendfile supportDenis Vlasenko2007-08-121-21/+39
|
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-9/+9
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* httpd: CGI Status: header fixDenis Vlasenko2007-08-111-9/+7
|
* httpd: add support for Status: CGI headerDenis Vlasenko2007-08-111-13/+24
|
* httpd: fix CGI handling bug (we were closing wrong fd).Denis Vlasenko2007-08-111-13/+20
|
* fix typo in last commitDenis Vlasenko2007-07-211-1/+1
|
* Three patches from FreeWRT peopleDenis Vlasenko2007-07-211-3/+8
|
* introduce and use bb_basename()Denis Vlasenko2007-06-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta bb_basename - 26 +26 sv_main 1226 1225 -1 passwd_main 1985 1983 -2 showdirs 482 478 -4 sendCgi 1811 1807 -4 make_device 1354 1350 -4 handleIncoming 2443 2439 -4 func_name 82 78 -4 service_name 2292 2285 -7 main 909 901 -8 cmp_main 555 547 -8 test_main 434 422 -12 act 228 216 -12 find_pair 180 164 -16 rmmod_main 298 280 -18 find_pid_by_name 156 134 -22 modprobe_main 1606 1576 -30 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/16 up/down: 26/-156) Total: -130 bytes text data bss dec hex filename 734933 3028 14400 752361 b7ae9 busybox_old 734801 3028 14400 752229 b7a65 busybox_unstripped
* Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms ↵Denis Vlasenko2007-06-251-4/+1
| | | | <wharms@bfs.de>)
* httpd: NOMMU fixes by Alex Landau <landau_alex@yahoo.com>Denis Vlasenko2007-06-231-0/+12
|
* httpd: move data off bss.Denis Vlasenko2007-06-091-189/+218
| | | | | | | | | | | | | | | httpd: do not realpath() for SCRIPT_FILENAME - it resolves symlinks but it should not: - /* SCRIPT_FILENAME required by PHP in CGI mode */ - if (!realpath(purl + 1, realpath_buff)) - goto error_execing_cgi; - setenv1("SCRIPT_FILENAME", realpath_buff); + + /* SCRIPT_FILENAME required by PHP in CGI mode */ + fullpath = concat_path_file(home_httpd, purl); + setenv1("SCRIPT_FILENAME", fullpath);
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* "Unify base64 handling" is done, remove TODODenis Vlasenko2007-04-181-3/+2
|
* teach find_root_device to deal with /dev/ subdirsDenis Vlasenko2007-04-131-5/+5
| | | | (by "Kirill K. Smirnov" <lich@math.spbu.ru>)
* add more convenient defines for [NO]MMU:Denis Vlasenko2007-04-111-1/+1
| | | | "#ifndef BB_NOMMU" is a double negative
* - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"Bernhard Reutner-Fischer2007-04-041-2/+2
|
* Attempt to get more applets compile for NOMMU.Denis Vlasenko2007-03-261-8/+6
| | | | | | | TODO_config_nommu documents what I managed to compile so far (yay! msh works! cool). inetd, telnetd, httpd still do not compile. TODO Also make fork(), daemon() produce warnings on compile stage (in addition to erros on link stage).
* move everything to new NOMMU helpers, except udhcpDenis Vlasenko2007-03-261-1/+1
|
* httpd: make httpd usable for NOMMU CPUsDenis Vlasenko2007-03-071-0/+13
|
* clean up accumulated whitespace damageDenis Vlasenko2007-03-071-3/+4
|
* httpd: run interpreter for configured file extensions in any dir,Denis Vlasenko2007-03-051-0/+14
| | | | not only in /cgi-bin/
* httpd: fix breakage (introduced by me)Denis Vlasenko2007-03-051-1/+1
|
* httpd: a little bit more correct handling of CGI "HTTP/xxx" outputDenis Vlasenko2007-02-131-34/+50
|
* httpd: fix for POSTDATA handling bugs:Denis Vlasenko2007-02-111-24/+24
| | | | | erroneous close(0) full_read -> safe_read (with explanation)
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #4Denis Vlasenko2007-01-291-7/+6
|
* cleanups: unnecessary casts, unified const_1, eliminate cross-.c fileDenis Vlasenko2007-01-221-3/+1
| | | | | prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED", removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
* httpd: use fd#1 in inetd modeDenis Vlasenko2007-01-141-4/+10
| | | | inetd: micro style fix
* next part of ipv6-ization is here: wget & httpdDenis Vlasenko2007-01-121-59/+74
|
* Trailing whitespace removal over entire treeDenis Vlasenko2007-01-111-2/+2
|
* httpd: stop adding our own "Content-type:" to CGI outputDenis Vlasenko2007-01-071-61/+76
|
* httpd: read cgi output with full_read, not safe_readDenis Vlasenko2007-01-031-11/+10
| | | | (avoids mangling of HTTP headers)
* convert calloc to xzallocDenis Vlasenko2007-01-031-2/+2
| | | | fix sleep-on-die option
* done a dozen of randconfig test. guess what? ALL failed...Denis Vlasenko2006-12-301-21/+23
| | | | these are resulting fixes
* httpd: fix decode of '/' when called via -dDenis Vlasenko2006-11-291-32/+34
|
* od: sometime ago I landed BIG od implementationDenis Vlasenko2006-11-281-6/+10
| | | | | from coreutils. My fault. This commit contains cleanups and size reductions.
* header_verbose_list: stop truncating file size in listingDenis Vlasenko2006-11-241-2/+2
|