summaryrefslogtreecommitdiff
path: root/src/base.h
diff options
context:
space:
mode:
authorArno Töll <arno@debian.org>2012-11-21 23:03:53 +0100
committerArno Töll <arno@debian.org>2012-11-21 23:03:53 +0100
commit8bc3f8767c4f4f4687d085405db60df79686521d (patch)
treea9d381d04e6af3c516540934cc0073c15c928749 /src/base.h
parent36c2c9520cdf4e725d0597eaa28c350087f1d3c0 (diff)
downloadlighttpd-8bc3f8767c4f4f4687d085405db60df79686521d.tar.gz
Imported Upstream version 1.4.23upstream/1.4.23
Diffstat (limited to 'src/base.h')
-rw-r--r--src/base.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/base.h b/src/base.h
index a111766..bcb2325 100644
--- a/src/base.h
+++ b/src/base.h
@@ -183,11 +183,15 @@ typedef struct {
} response;
typedef struct {
- buffer *scheme;
+ buffer *scheme; /* scheme without colon or slashes ( "http" or "https" ) */
+
+ /* authority with optional portnumber ("site.name" or "site.name:8080" ) NOTE: without "username:password@" */
buffer *authority;
+
+ /* path including leading slash ("/" or "/index.html") - urldecoded, and sanitized ( buffer_path_simplify() && buffer_urldecode_path() ) */
buffer *path;
- buffer *path_raw;
- buffer *query;
+ buffer *path_raw; /* raw path, as sent from client. no urldecoding or path simplifying */
+ buffer *query; /* querystring ( everything after "?", ie: in "/index.php?foo=1", query is "foo=1" ) */
} request_uri;
typedef struct {
@@ -270,6 +274,7 @@ typedef struct {
unsigned short ssl_use_sslv2;
unsigned short use_ipv6;
+ unsigned short defer_accept;
unsigned short is_ssl;
unsigned short allow_http11;
unsigned short etag_use_inode;
@@ -533,7 +538,7 @@ typedef struct server {
/* the errorlog */
int errorlog_fd;
- enum { ERRORLOG_STDERR, ERRORLOG_FILE, ERRORLOG_SYSLOG } errorlog_mode;
+ enum { ERRORLOG_STDERR, ERRORLOG_FILE, ERRORLOG_SYSLOG, ERRORLOG_PIPE } errorlog_mode;
buffer *errorlog_buf;
fdevents *ev, *ev_ins;
@@ -582,6 +587,9 @@ typedef struct server {
time_t last_generated_debug_ts;
time_t startup_ts;
+ char entropy[8]; /* from /dev/[u]random if possible, otherwise rand() */
+ char is_real_entropy; /* whether entropy is from /dev/[u]random */
+
buffer *ts_debug_str;
buffer *ts_date_str;