51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
+
+
+
+
+
+
+
+
-
+
-
+
-
+
|
1. Logging (CFLAGS, -DFILED_DONT_LOG=1)
It is possible to disable ALL logging from filed. When logging is
completely disabled interlocks (mutexes) for the logging pointer are
not engaged and the logging functions are not compiled at all.
This results in a slightly smaller and faster binary
2. Kill idle connections (CFLAGS, -DFILED_DONT_TIMEOUT=1)
Killing idle connections relies heavily upon C11 atomics. This
requires a relatively new version of GCC (4.9+) or other C compiler
that implements this aspect of C11 and so it can be disabled at
compile time (which is the only time it makes sense). One day an
alternate implementation might be present that uses a mutex instead
of atomics at which point this documentation will be updated.
2. Debugging (CFLAGS, -DFILED_DEBUG=1)
3. Debugging (CFLAGS, -DFILED_DEBUG=1)
This is an internal option and should only be used during development.
3. Differing HTTP semantics (CFLAGS, -DFILED_NONBLOCK_HTTP=1)
4. Differing HTTP semantics (CFLAGS, -DFILED_NONBLOCK_HTTP=1)
It is possible that some HTTP clients may not process the HTTP stream
being delivered if they cannot write to the HTTP stream itself. This
has not been observed yet, but it is possible. If these semantics are
needed (and they should not be) then they can be enabled with this
flag at the cost of performance
4. MIME Types (MIMETYPES)
5. MIME Types (MIMETYPES)
For single-file convience "filed" compiles the mapping of file
extensions (the string in the filename following its last dot ("."))
into the executable. This mapping comes from a file in the format of
type1 type1_extension1 type1_extension2...
type2 type2_extension1 type2_extension2...
...
However it may not be desirable to include this mapping, or it may be
|