SOURCES: lighttpd-mod_evasive-status_code.patch, lighttpd-branding.patch - ...

glen glen at pld-linux.org
Fri Sep 19 17:03:51 CEST 2008


Author: glen                         Date: Fri Sep 19 15:03:50 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- update to current svn

---- Files affected:
SOURCES:
   lighttpd-mod_evasive-status_code.patch (1.2 -> 1.3) , lighttpd-branding.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/lighttpd-mod_evasive-status_code.patch
diff -u SOURCES/lighttpd-mod_evasive-status_code.patch:1.2 SOURCES/lighttpd-mod_evasive-status_code.patch:1.3
--- SOURCES/lighttpd-mod_evasive-status_code.patch:1.2	Tue Oct 10 02:19:18 2006
+++ SOURCES/lighttpd-mod_evasive-status_code.patch	Fri Sep 19 17:03:44 2008
@@ -1,5 +1,5 @@
---- lighttpd-1.4.13/src/mod_evasive.c~	2006-10-10 03:02:12.749561697 +0300
-+++ lighttpd-1.4.13/src/mod_evasive.c	2006-10-10 03:14:39.056335465 +0300
+--- lighttpd-1.4.19/src/mod_evasive.c~	2008-09-19 17:46:59.000000000 +0300
++++ lighttpd-1.4.19/src/mod_evasive.c	2008-09-19 17:50:24.307245276 +0300
 @@ -27,11 +27,15 @@
  
  typedef struct {
@@ -80,15 +80,15 @@
  			}
  		}
  	}
-@@ -153,7 +175,10 @@
- 					inet_ntop_cache_get_ip(srv, &(con->dst_addr)),
- 					"turned away. Too many connections.");
- 
--				con->http_status = 403;
-+				buffer_copy_long(p->evasive_rftmp, p->conf.retry_after);
-+
-+				con->http_status = p->conf.http_status_code;
-+				response_header_overwrite(srv, con, CONST_STR_LEN("Retry-After"), CONST_BUF_LEN(p->evasive_rftmp));
- 				return HANDLER_FINISHED;
- 			}
+@@ -198,8 +198,10 @@
+ 				inet_ntop_cache_get_ip(srv, &(con->dst_addr)),
+ 				"turned away. Too many connections.");
+ 
+-			con->http_status = 403;
+ 			con->mode = DIRECT;
++			con->http_status = p->conf.http_status_code;
++			buffer_copy_long(p->evasive_rftmp, p->conf.retry_after);
++			response_header_overwrite(srv, con, CONST_STR_LEN("Retry-After"), CONST_BUF_LEN(p->evasive_rftmp));
+ 			return HANDLER_FINISHED;
  		}
+ 	}

================================================================
Index: SOURCES/lighttpd-branding.patch
diff -u SOURCES/lighttpd-branding.patch:1.2 SOURCES/lighttpd-branding.patch:1.3
--- SOURCES/lighttpd-branding.patch:1.2	Thu Apr 10 20:45:37 2008
+++ SOURCES/lighttpd-branding.patch	Fri Sep 19 17:03:45 2008
@@ -1,11 +1,11 @@
---- lighttpd-1.4.19/src/response.c~	2008-04-10 21:33:53.255875588 +0300
-+++ lighttpd-1.4.19/src/response.c	2008-04-10 21:34:21.149289502 +0300
-@@ -100,7 +100,7 @@
+--- lighttpd-1.4.19/src/response.c~	2008-09-19 17:51:25.000000000 +0300
++++ lighttpd-1.4.19/src/response.c	2008-09-19 17:54:05.496023995 +0300
+@@ -105,7 +105,7 @@
  
  	if (!have_server) {
  		if (buffer_is_empty(con->conf.server_tag)) {
--			BUFFER_APPEND_STRING_CONST(b, "\r\nServer: " PACKAGE_NAME "/" PACKAGE_VERSION);
-+			BUFFER_APPEND_STRING_CONST(b, "\r\nServer: " PACKAGE_NAME "/" PACKAGE_VERSION " (PLD Linux)");
+-			buffer_append_string_len(b, CONST_STR_LEN("\r\nServer: " PACKAGE_NAME "/" PACKAGE_VERSION));
++			buffer_append_string_len(b, CONST_STR_LEN("\r\nServer: " PACKAGE_NAME "/" PACKAGE_VERSION " (PLD Linux)"));
  		} else if (con->conf.server_tag->used > 1) {
- 			BUFFER_APPEND_STRING_CONST(b, "\r\nServer: ");
+ 			buffer_append_string_len(b, CONST_STR_LEN("\r\nServer: "));
  			buffer_append_string_encoded(b, CONST_BUF_LEN(con->conf.server_tag), ENCODING_HTTP_HEADER);
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/lighttpd-mod_evasive-status_code.patch?r1=1.2&r2=1.3&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/lighttpd-branding.patch?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list