SOURCES: lighttpd-branch.diff - update to r2392 (PRE-RELEASE: 1.4.21-r2392)...

glen glen at pld-linux.org
Fri Feb 6 03:58:13 CET 2009


Author: glen                         Date: Fri Feb  6 02:58:13 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- update to r2392 (PRE-RELEASE: 1.4.21-r2392)
  * Silenced the annoying "request timed out" warning, enable with the "debug.log-timeouts" option (fixes #1529)
  * Allow tabs in header values (fixes #1822)
  * Added Language conditional (fixes #1119); patch by petar

---- Files affected:
SOURCES:
   lighttpd-branch.diff (1.44 -> 1.45) 

---- Diffs:

================================================================
Index: SOURCES/lighttpd-branch.diff
diff -u SOURCES/lighttpd-branch.diff:1.44 SOURCES/lighttpd-branch.diff:1.45
--- SOURCES/lighttpd-branch.diff:1.44	Thu Feb  5 18:40:31 2009
+++ SOURCES/lighttpd-branch.diff	Fri Feb  6 03:58:08 2009
@@ -1,7 +1,7 @@
 Index: cmake/LighttpdMacros.cmake
 ===================================================================
 --- cmake/LighttpdMacros.cmake	(.../tags/lighttpd-1.4.20)	(revision 0)
-+++ cmake/LighttpdMacros.cmake	(.../branches/lighttpd-1.4.x)	(revision 2389)
++++ cmake/LighttpdMacros.cmake	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -0,0 +1,43 @@
 +## our modules are without the "lib" prefix
 +
@@ -50,8 +50,8 @@
 ===================================================================
 Index: src/configfile-glue.c
 ===================================================================
---- src/configfile-glue.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/configfile-glue.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/configfile-glue.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/configfile-glue.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -1,4 +1,5 @@
  #include <string.h>
 +#include <stdlib.h>
@@ -81,10 +81,26 @@
  				log_error_write(srv, __FILE__, __LINE__, "ssb", "got a string but expected a short:", cv[i].key, ds->value);
  
  				return -1;
+@@ -396,6 +413,15 @@
+ 
+ 		break;
+ 	}
++	case COMP_HTTP_LANGUAGE: {
++		data_string *ds;
++		if (NULL != (ds = (data_string *)array_get_element(con->request.headers, "Accept-Language"))) {
++			l = ds->value;
++		} else {
++			l = srv->empty_string;
++		}
++		break;
++	}
+ 	default:
+ 		return COND_RESULT_FALSE;
+ 	}
 Index: src/mod_cgi.c
 ===================================================================
---- src/mod_cgi.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/mod_cgi.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/mod_cgi.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/mod_cgi.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -822,15 +822,27 @@
  			);
  		cgi_env_add(&env, CONST_STR_LEN("SERVER_PORT"), buf, strlen(buf));
@@ -155,9 +171,17 @@
  		LI_ltostr(buf,
 Index: src/base.h
 ===================================================================
---- src/base.h	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/base.h	(.../branches/lighttpd-1.4.x)	(revision 2389)
-@@ -497,6 +497,7 @@
+--- src/base.h	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/base.h	(.../branches/lighttpd-1.4.x)	(revision 2392)
+@@ -260,6 +260,7 @@
+ 	unsigned short log_response_header;
+ 	unsigned short log_condition_handling;
+ 	unsigned short log_ssl_noise;
++	unsigned short log_timeouts;
+ 
+ 
+ 	/* server wide */
+@@ -497,6 +498,7 @@
  #endif
  	} stat_cache_engine;
  	unsigned short enable_cores;
@@ -167,8 +191,8 @@
  typedef struct {
 Index: src/mod_rewrite.c
 ===================================================================
---- src/mod_rewrite.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/mod_rewrite.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/mod_rewrite.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/mod_rewrite.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -350,11 +350,7 @@
  
  	if (!p->conf.rewrite) return HANDLER_GO_ON;
@@ -184,8 +208,8 @@
  		pcre *match;
 Index: src/connections.c
 ===================================================================
---- src/connections.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/connections.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/connections.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/connections.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -330,15 +330,13 @@
  	buffer_prepare_copy(b, 4 * 1024);
  	len = recv(con->fd, b->ptr, b->size - 1, 0);
@@ -218,10 +242,22 @@
  						}
  					} else {
  						/* the chunk is too large now, close it */
+Index: src/array.h
+===================================================================
+--- src/array.h	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/array.h	(.../branches/lighttpd-1.4.x)	(revision 2392)
+@@ -87,6 +87,7 @@
+ 	COMP_HTTP_HOST,
+ 	COMP_HTTP_REFERER,
+ 	COMP_HTTP_USER_AGENT,
++	COMP_HTTP_LANGUAGE,
+ 	COMP_HTTP_COOKIE,
+ 	COMP_HTTP_REMOTE_IP,
+ 	COMP_HTTP_QUERY_STRING,
 Index: src/mod_alias.c
 ===================================================================
---- src/mod_alias.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/mod_alias.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/mod_alias.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/mod_alias.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -103,9 +103,8 @@
  					}
  					/* ok, they have same prefix. check position */
@@ -236,17 +272,24 @@
  				}
 Index: src/configfile.c
 ===================================================================
---- src/configfile.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/configfile.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
-@@ -94,6 +94,7 @@
- 		{ "etag.use-inode",             NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_SERVER }, /* 49 */
- 		{ "etag.use-mtime",             NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_SERVER }, /* 50 */
- 		{ "etag.use-size",             NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_SERVER }, /* 51 */
+--- src/configfile.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/configfile.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
+@@ -91,9 +91,11 @@
+ 		{ "server.core-files",           NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_CONNECTION }, /* 46 */
+ 		{ "ssl.cipher-list",             NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_SERVER },      /* 47 */
+ 		{ "ssl.use-sslv2",               NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_CONNECTION }, /* 48 */
+-		{ "etag.use-inode",             NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_SERVER }, /* 49 */
+-		{ "etag.use-mtime",             NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_SERVER }, /* 50 */
+-		{ "etag.use-size",             NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_SERVER }, /* 51 */
++		{ "etag.use-inode",              NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_SERVER }, /* 49 */
++		{ "etag.use-mtime",              NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_SERVER }, /* 50 */
++		{ "etag.use-size",               NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_SERVER }, /* 51 */
 +		{ "server.reject-expect-100-with-417",  NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_SERVER }, /* 52 */
++		{ "debug.log-timeouts",          NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_CONNECTION }, /* 53 */
  		{ "server.host",                 "use server.bind instead", T_CONFIG_DEPRECATED, T_CONFIG_SCOPE_UNSET },
  		{ "server.docroot",              "use server.document-root instead", T_CONFIG_DEPRECATED, T_CONFIG_SCOPE_UNSET },
  		{ "server.virtual-root",         "load mod_simple_vhost and use simple-vhost.server-root instead", T_CONFIG_DEPRECATED, T_CONFIG_SCOPE_UNSET },
-@@ -135,6 +136,7 @@
+@@ -135,6 +137,7 @@
  
  	cv[43].destination = &(srv->srvconf.max_conns);
  	cv[12].destination = &(srv->srvconf.max_request_size);
@@ -254,7 +297,7 @@
  	srv->config_storage = calloc(1, srv->config_context->used * sizeof(specific_config *));
  
  	assert(srv->config_storage);
-@@ -159,7 +161,7 @@
+@@ -159,7 +162,7 @@
  		s->max_write_idle = 360;
  		s->use_xattr     = 0;
  		s->is_ssl        = 0;
@@ -263,7 +306,24 @@
  		s->use_ipv6      = 0;
  #ifdef HAVE_LSTAT
  		s->follow_symlink = 1;
-@@ -940,7 +942,6 @@
+@@ -207,6 +210,7 @@
+ 		cv[33].destination = &(s->log_response_header);
+ 		cv[34].destination = &(s->log_request_header);
+ 		cv[35].destination = &(s->log_ssl_noise);
++		cv[53].destination = &(s->log_timeouts);
+ 
+ 		cv[36].destination = &(s->allow_http11);
+ 		cv[39].destination = s->ssl_ca_file;
+@@ -374,6 +378,8 @@
+ 				PATCH(log_file_not_found);
+ 			} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("debug.log-ssl-noise"))) {
+ 				PATCH(log_ssl_noise);
++			} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("debug.log-timeouts"))) {
++				PATCH(log_timeouts);
+ 			} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("server.protocol-http11"))) {
+ 				PATCH(allow_http11);
+ 			} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("server.force-lowercase-filenames"))) {
+@@ -940,7 +946,6 @@
  }
  
  int config_parse_cmd(server *srv, config_t *context, const char *cmd) {
@@ -271,7 +331,7 @@
  	tokenizer_t t;
  	int ret;
  	buffer *source;
-@@ -960,7 +961,7 @@
+@@ -960,7 +965,7 @@
  		chdir(context->basedir->ptr);
  	}
  
@@ -282,8 +342,8 @@
  		ret = -1;
 Index: src/mod_trigger_b4_dl.c
 ===================================================================
---- src/mod_trigger_b4_dl.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/mod_trigger_b4_dl.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/mod_trigger_b4_dl.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/mod_trigger_b4_dl.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -1,5 +1,6 @@
  #include <ctype.h>
  #include <stdlib.h>
@@ -303,8 +363,8 @@
  #if defined(HAVE_PCRE_H)
 Index: src/mod_mysql_vhost.c
 ===================================================================
---- src/mod_mysql_vhost.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/mod_mysql_vhost.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/mod_mysql_vhost.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/mod_mysql_vhost.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -245,7 +245,6 @@
  		if (!(buffer_is_empty(s->myuser) ||
  		      buffer_is_empty(s->mydb))) {
@@ -348,8 +408,8 @@
  #define PATCH(x) \
 Index: src/request.c
 ===================================================================
---- src/request.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/request.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/request.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/request.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -894,11 +894,12 @@
  								 *
  								 */
@@ -368,10 +428,19 @@
  							} else if (cmp > 0 && 0 == (cmp = buffer_caseless_compare(CONST_BUF_LEN(ds->key), CONST_STR_LEN("Host")))) {
  								if (!con->request.http_host) {
  									con->request.http_host = ds->value;
+@@ -1020,7 +1021,7 @@
+ 				/* strip leading WS */
+ 				if (value == cur) value = cur+1;
+ 			default:
+-				if (*cur >= 0 && *cur < 32) {
++				if (*cur >= 0 && *cur < 32 && *cur != '\t') {
+ 					if (srv->srvconf.log_request_header_on_error) {
+ 						log_error_write(srv, __FILE__, __LINE__, "sds",
+ 								"invalid char in header", (int)*cur, "-> 400");
 Index: src/inet_ntop_cache.c
 ===================================================================
---- src/inet_ntop_cache.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/inet_ntop_cache.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/inet_ntop_cache.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/inet_ntop_cache.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -11,7 +11,7 @@
  #ifdef HAVE_IPV6
  	size_t ndx = 0, i;
@@ -383,8 +452,8 @@
  				/* IPv6 found in cache */
 Index: src/mod_rrdtool.c
 ===================================================================
---- src/mod_rrdtool.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/mod_rrdtool.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/mod_rrdtool.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/mod_rrdtool.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -179,6 +179,11 @@
  		p->read_fd = from_rrdtool_fds[0];
  		p->rrdtool_pid = pid;
@@ -399,8 +468,8 @@
  	}
 Index: src/response.c
 ===================================================================
---- src/response.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/response.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/response.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/response.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -44,16 +44,15 @@
  	buffer_append_string(b, get_http_status_name(con->http_status));
  
@@ -421,7 +490,15 @@
  	}
  
  
-@@ -233,6 +232,27 @@
+@@ -199,6 +198,7 @@
+ 		config_patch_connection(srv, con, COMP_HTTP_REMOTE_IP); /* Client-IP */
+ 		config_patch_connection(srv, con, COMP_HTTP_REFERER);   /* Referer:     */
+ 		config_patch_connection(srv, con, COMP_HTTP_USER_AGENT);/* User-Agent:  */
++		config_patch_connection(srv, con, COMP_HTTP_LANGUAGE);  /* Accept-Language:  */
+ 		config_patch_connection(srv, con, COMP_HTTP_COOKIE);    /* Cookie:  */
+ 		config_patch_connection(srv, con, COMP_HTTP_REQUEST_METHOD); /* REQUEST_METHOD */
+ 
+@@ -233,6 +233,27 @@
  		}
  
  
@@ -449,7 +526,7 @@
  		/* build filename
  		 *
  		 * - decode url-encodings  (e.g. %20 -> ' ')
-@@ -240,6 +260,7 @@
+@@ -240,6 +261,7 @@
  		 */
  
  
@@ -457,7 +534,7 @@
  		if (con->request.http_method == HTTP_METHOD_OPTIONS &&
  		    con->uri.path_raw->ptr[0] == '*' && con->uri.path_raw->ptr[1] == '\0') {
  			/* OPTIONS * ... */
-@@ -255,32 +276,10 @@
+@@ -255,32 +277,10 @@
  			log_error_write(srv, __FILE__, __LINE__,  "sb", "URI-path     : ", con->uri.path);
  		}
  
@@ -492,8 +569,8 @@
  		 */
 Index: src/buffer.c
 ===================================================================
---- src/buffer.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/buffer.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/buffer.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/buffer.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -159,7 +159,7 @@
  	if (!src) return -1;
  
@@ -513,8 +590,8 @@
  		b->used++;
 Index: src/mod_simple_vhost.c
 ===================================================================
---- src/mod_simple_vhost.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/mod_simple_vhost.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/mod_simple_vhost.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/mod_simple_vhost.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -249,6 +249,8 @@
  				return HANDLER_GO_ON;
  			} else {
@@ -526,8 +603,8 @@
  			buffer_copy_string_buffer(con->server_name, con->uri.authority);
 Index: src/mod_proxy.c
 ===================================================================
---- src/mod_proxy.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/mod_proxy.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/mod_proxy.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/mod_proxy.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -454,6 +454,7 @@
  
  		if (ds->value->used && ds->key->used) {
@@ -558,7 +635,7 @@
 Index: src/config.h.cmake
 ===================================================================
 --- src/config.h.cmake	(.../tags/lighttpd-1.4.20)	(revision 0)
-+++ src/config.h.cmake	(.../branches/lighttpd-1.4.x)	(revision 2389)
++++ src/config.h.cmake	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -0,0 +1,157 @@
 +/*
 +    CMake autogenerated config.h file. Do not edit!
@@ -719,8 +796,8 @@
 +#cmakedefine LIGHTTPD_STATIC
 Index: src/network_freebsd_sendfile.c
 ===================================================================
---- src/network_freebsd_sendfile.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/network_freebsd_sendfile.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/network_freebsd_sendfile.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/network_freebsd_sendfile.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -167,6 +167,7 @@
  				switch(errno) {
  				case EAGAIN:
@@ -756,8 +833,8 @@
  
 Index: src/http_auth.c
 ===================================================================
---- src/http_auth.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/http_auth.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/http_auth.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/http_auth.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -57,22 +57,25 @@
  
  static const char base64_pad = '=';
@@ -882,8 +959,8 @@
  		if (NULL == (ldap = ldap_init(p->conf.auth_ldap_hostname->ptr, LDAP_PORT))) {
 Index: src/mod_redirect.c
 ===================================================================
---- src/mod_redirect.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/mod_redirect.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/mod_redirect.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/mod_redirect.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -178,11 +178,7 @@
  
  	mod_redirect_patch_connection(srv, con, p);
@@ -899,8 +976,8 @@
  		pcre *match;
 Index: src/http_auth.h
 ===================================================================
---- src/http_auth.h	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/http_auth.h	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/http_auth.h	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/http_auth.h	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -63,7 +63,7 @@
  
  	mod_auth_plugin_config **config_storage;
@@ -912,8 +989,8 @@
  int http_auth_basic_check(server *srv, connection *con, mod_auth_plugin_data *p, array *req, buffer *url, const char *realm_str);
 Index: src/mod_webdav.c
 ===================================================================
---- src/mod_webdav.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/mod_webdav.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/mod_webdav.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/mod_webdav.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -1026,6 +1026,8 @@
  				if (MAP_FAILED == (c->file.mmap.start = mmap(0, c->file.length, PROT_READ, MAP_SHARED, c->file.fd, 0))) {
  					log_error_write(srv, __FILE__, __LINE__, "ssbd", "mmap failed: ",
@@ -932,10 +1009,22 @@
  
  						return HANDLER_ERROR;
  					}
+Index: src/configparser.y
+===================================================================
+--- src/configparser.y	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/configparser.y	(.../branches/lighttpd-1.4.x)	(revision 2392)
+@@ -427,6 +427,7 @@
+       { COMP_HTTP_REFERER,       CONST_STR_LEN("HTTP[\"referer\"]"    ) },
+       { COMP_HTTP_USER_AGENT,    CONST_STR_LEN("HTTP[\"useragent\"]"  ) },
+       { COMP_HTTP_USER_AGENT,    CONST_STR_LEN("HTTP[\"user-agent\"]"  ) },
++      { COMP_HTTP_LANGUAGE,      CONST_STR_LEN("HTTP[\"language\"]"   ) },
+       { COMP_HTTP_COOKIE,        CONST_STR_LEN("HTTP[\"cookie\"]"     ) },
+       { COMP_HTTP_REMOTE_IP,     CONST_STR_LEN("HTTP[\"remoteip\"]"   ) },
+       { COMP_HTTP_REMOTE_IP,     CONST_STR_LEN("HTTP[\"remote-ip\"]"   ) },
 Index: src/mod_compress.c
 ===================================================================
---- src/mod_compress.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/mod_compress.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/mod_compress.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/mod_compress.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -49,6 +49,7 @@
  	buffer *compress_cache_dir;
  	array  *compress;
@@ -1185,8 +1274,8 @@
  		}
 Index: src/spawn-fcgi.c
 ===================================================================
---- src/spawn-fcgi.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/spawn-fcgi.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/spawn-fcgi.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/spawn-fcgi.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -58,7 +58,7 @@
  
  
@@ -1217,8 +1306,8 @@
  
 Index: src/mod_auth.c
 ===================================================================
---- src/mod_auth.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/mod_auth.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/mod_auth.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/mod_auth.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -115,7 +115,7 @@
  	PATCH(auth_ldap_starttls);
  	PATCH(auth_ldap_allow_empty_pw);
@@ -1258,8 +1347,8 @@
  
 Index: src/http-header-glue.c
 ===================================================================
---- src/http-header-glue.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/http-header-glue.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/http-header-glue.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/http-header-glue.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -280,6 +280,7 @@
  						strncpy(buf, con->request.http_if_modified_since, used_len);
  						buf[used_len] = '\0';
@@ -1278,8 +1367,8 @@
  				 * parsing failed, let's get out of here 
 Index: src/mod_fastcgi.c
 ===================================================================
---- src/mod_fastcgi.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/mod_fastcgi.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/mod_fastcgi.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/mod_fastcgi.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -3252,6 +3252,7 @@
  				fcgi_connection_close(srv, hctx);
  
@@ -1380,7 +1469,7 @@
 Index: src/CMakeLists.txt
 ===================================================================
 --- src/CMakeLists.txt	(.../tags/lighttpd-1.4.20)	(revision 0)
-+++ src/CMakeLists.txt	(.../branches/lighttpd-1.4.x)	(revision 2389)
++++ src/CMakeLists.txt	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -0,0 +1,598 @@
 +INCLUDE(CheckCSourceCompiles)
 +INCLUDE(CheckIncludeFiles)
@@ -1982,8 +2071,8 @@
 +ENDIF(NOT WIN32)
 Index: src/mod_accesslog.c
 ===================================================================
---- src/mod_accesslog.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/mod_accesslog.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/mod_accesslog.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/mod_accesslog.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -169,13 +169,13 @@
  				if (fields->size == 0) {
  					fields->size = 16;
@@ -2081,8 +2170,8 @@
  
 Index: src/fdevent_linux_sysepoll.c
 ===================================================================
---- src/fdevent_linux_sysepoll.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/fdevent_linux_sysepoll.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/fdevent_linux_sysepoll.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/fdevent_linux_sysepoll.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -91,7 +91,7 @@
  	if (e & EPOLLHUP) events |= FDEVENT_HUP;
  	if (e & EPOLLPRI) events |= FDEVENT_PRI;
@@ -2094,8 +2183,8 @@
  static int fdevent_linux_sysepoll_event_get_fd(fdevents *ev, size_t ndx) {
 Index: src/server.c
 ===================================================================
---- src/server.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/server.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/server.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/server.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -210,6 +210,7 @@
  	srv->srvconf.modules_dir = buffer_init_string(LIBRARY_DIR);
  	srv->srvconf.network_backend = buffer_init();
@@ -2126,6 +2215,26 @@
  	}
  
  	if (HANDLER_GO_ON != plugins_call_init(srv)) {
+@@ -1243,8 +1245,8 @@
+ 
+ 						if (srv->cur_ts - con->write_request_ts > con->conf.max_write_idle) {
+ 							/* time - out */
+-#if 1
+-							log_error_write(srv, __FILE__, __LINE__, "sbsosds",
++							if (con->conf.log_timeouts) {
++								log_error_write(srv, __FILE__, __LINE__, "sbsosds",
+ 									"NOTE: a request for",
+ 									con->request.uri,
+ 									"timed out after writing",
+@@ -1252,7 +1254,7 @@
+ 									"bytes. We waited",
+ 									(int)con->conf.max_write_idle,
+ 									"seconds. If this a problem increase server.max-write-idle");
+-#endif
++							}
+ 							connection_set_state(srv, con, CON_STATE_ERROR);
+ 							changed = 1;
+ 						}
 @@ -1295,8 +1297,8 @@
  		if (srv->sockets_disabled) {
  			/* our server sockets are disabled, why ? */
@@ -2159,8 +2268,8 @@
  					log_error_write(srv, __FILE__, __LINE__, "s", "[note] sockets disabled, out-of-fds");
 Index: src/log.c
 ===================================================================
---- src/log.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/log.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/log.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/log.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -146,6 +146,10 @@
  			/* ok, new log is open, close the old one */
  			close(srv->errorlog_fd);
@@ -2174,8 +2283,8 @@
  
 Index: src/proc_open.c
 ===================================================================
---- src/proc_open.c	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/proc_open.c	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/proc_open.c	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/proc_open.c	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -287,32 +287,33 @@
  }
  /* }}} */
@@ -2240,8 +2349,8 @@
  		fprintf(stdout, "result: ->%s<-\n\n", out->ptr); fflush(stdout);
 Index: src/proc_open.h
 ===================================================================
---- src/proc_open.h	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ src/proc_open.h	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- src/proc_open.h	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ src/proc_open.h	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -22,4 +22,4 @@
  
  int proc_close(proc_handler_t *ht);
@@ -2250,8 +2359,8 @@
 +int proc_open_buffer(const char *command, buffer *in, buffer *out, buffer *err);
 Index: tests/mod-proxy.t
 ===================================================================
---- tests/mod-proxy.t	(.../tags/lighttpd-1.4.20)	(revision 2389)
-+++ tests/mod-proxy.t	(.../branches/lighttpd-1.4.x)	(revision 2389)
+--- tests/mod-proxy.t	(.../tags/lighttpd-1.4.20)	(revision 2392)
++++ tests/mod-proxy.t	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -8,14 +8,24 @@
  
  use strict;
@@ -2325,7 +2434,7 @@
 Index: tests/CMakeLists.txt
 ===================================================================
 --- tests/CMakeLists.txt	(.../tags/lighttpd-1.4.20)	(revision 0)
-+++ tests/CMakeLists.txt	(.../branches/lighttpd-1.4.x)	(revision 2389)
++++ tests/CMakeLists.txt	(.../branches/lighttpd-1.4.x)	(revision 2392)
 @@ -0,0 +1,34 @@
 +SET(T_FILES
<<Diff was trimmed, longer than 597 lines>>

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/lighttpd-branch.diff?r1=1.44&r2=1.45&f=u



More information about the pld-cvs-commit mailing list