httpd: extend -p PORT to -p [IP[v6]:]PORT

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
This commit is contained in:
Denis Vlasenko
2007-08-14 16:50:01 +00:00
parent 3d17d2b430
commit 0372f0f199
4 changed files with 108 additions and 137 deletions

View File

@@ -1352,21 +1352,21 @@
" [-h home]" \
" [-d/-e string]"
#define httpd_full_usage \
"Listen for incoming http server requests" \
"\n\nOptions:\n" \
" -c FILE Specifies configuration file. (default httpd.conf)\n" \
" -p PORT Server port (default 80)\n" \
" -i Assume that we are started from inetd\n" \
" -f Do not daemonize\n" \
"Listen for incoming HTTP requests" \
"\n\nOptions:" \
"\n -c FILE Configuration file (default httpd.conf)" \
"\n -p PORT Server port (default 80)" \
"\n -i Inetd mode" \
"\n -f Do not daemonize" \
USE_FEATURE_HTTPD_SETUID( \
" -u USER[:GRP] Set uid/gid after binding to port\n") \
"\n -u USER[:GRP] Set uid/gid after binding to port") \
USE_FEATURE_HTTPD_BASIC_AUTH( \
" -r REALM Authentication Realm for Basic Authentication\n") \
"\n -r REALM Authentication Realm for Basic Authentication") \
USE_FEATURE_HTTPD_AUTH_MD5( \
" -m PASS Crypt PASS with md5 algorithm\n") \
" -h HOME Specifies http HOME directory (default ./)\n" \
" -e STRING HTML encode STRING\n" \
" -d STRING URL decode STRING"
"\n -m PASS Crypt PASS with md5 algorithm") \
"\n -h HOME Home directory (default .)" \
"\n -e STRING HTML encode STRING" \
"\n -d STRING URL decode STRING"
#define hwclock_trivial_usage \
"[-r|--show] [-s|--hctosys] [-w|--systohc]" \