Check-in [a00dfe0a20]
Overview
Comment:Changed default port to 80 and added man page
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:a00dfe0a20791eef67c14e37e183b2c7dfc3e8b0
User & Date: rkeene on 2014-02-06 22:37:27
Other Links: manifest | tags
Context
2014-02-06
22:41
Changed section to 1 for man page check-in: 20cc928425 user: rkeene tags: trunk
22:37
Changed default port to 80 and added man page check-in: a00dfe0a20 user: rkeene tags: trunk
20:43
Updated to support arguments, updated hashing algorithm, and minor cleanup check-in: 613c9bd346 user: rkeene tags: trunk
Changes

Added filed.8 version [fb9b8ddb1b].

            1  +.PU
            2  +.TH FILED 8 "06 Feb 14" "filed 1.0"
            3  +.SH NAME
            4  +filed \- serve files over HTTP
            5  +.SH SYNOPSIS
            6  +.ll +10
            7  +.B filed
            8  +.RB [ "\-h" ]
            9  +.RB [ \-p\ port ]
           10  +.RB [ \-t\ counts ]
           11  +.RB [ \-c\ entries ]
           12  +.ll -10
           13  +.SH DESCRIPTION
           14  +.I FILED
           15  +serves files over HTTP as minimally as possible.  Only static files (i.e., files that never change or are replaced) are supported.
           16  +
           17  +.SH OPTIONS
           18  +.TP
           19  +.B \-p
           20  +port
           21  +
           22  +.SH AUTHOR
           23  +.Sp
           24  +Roy Keene
           25  +.I <filed@rkeene.org>

Modified filed.c from [d5944384cb] to [0d0ecd3cdc].

    18     18   #include <pwd.h>
    19     19   
    20     20   /* Compile time constants */
    21     21   #define FILED_SENDFILE_MAX 16777215
    22     22   #define MAX_FAILURE_COUNT 30
    23     23   
    24     24   /* Default values */
    25         -#define PORT 8080
           25  +#define PORT 80
    26     26   #define THREAD_COUNT 5
    27     27   #define BIND_ADDR "::"
    28     28   #define CACHE_SIZE 8193
    29     29   
    30     30   /* Arguments for worker threads */
    31     31   struct filed_worker_thread_args {
    32     32   	int fd;