You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(191) |
May
(229) |
Jun
(69) |
Jul
(66) |
Aug
(151) |
Sep
(145) |
Oct
(72) |
Nov
(43) |
Dec
(14) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(13) |
Feb
(14) |
Mar
(114) |
Apr
(25) |
May
(14) |
Jun
(13) |
Jul
(13) |
Aug
(1) |
Sep
(9) |
Oct
(12) |
Nov
(9) |
Dec
(36) |
2004 |
Jan
(26) |
Feb
(5) |
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
|
Dec
(1) |
2005 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(2) |
Jun
(1) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
(7) |
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
(32) |
Aug
(65) |
Sep
(164) |
Oct
(59) |
Nov
(53) |
Dec
(74) |
2007 |
Jan
(62) |
Feb
(27) |
Mar
(36) |
Apr
(34) |
May
(27) |
Jun
(21) |
Jul
(26) |
Aug
(31) |
Sep
(21) |
Oct
(36) |
Nov
(96) |
Dec
(72) |
2008 |
Jan
(69) |
Feb
(68) |
Mar
(72) |
Apr
(45) |
May
(77) |
Jun
(90) |
Jul
(21) |
Aug
(78) |
Sep
(7) |
Oct
(38) |
Nov
(40) |
Dec
(32) |
2009 |
Jan
(30) |
Feb
(136) |
Mar
(73) |
Apr
(35) |
May
(55) |
Jun
(105) |
Jul
(81) |
Aug
(20) |
Sep
(46) |
Oct
(57) |
Nov
(18) |
Dec
(32) |
2010 |
Jan
(48) |
Feb
(69) |
Mar
(11) |
Apr
(12) |
May
(20) |
Jun
(11) |
Jul
(27) |
Aug
(8) |
Sep
(11) |
Oct
(20) |
Nov
(86) |
Dec
(16) |
2011 |
Jan
(19) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
(17) |
Mar
(82) |
Apr
(12) |
May
(17) |
Jun
(10) |
Jul
(34) |
Aug
|
Sep
(23) |
Oct
(73) |
Nov
(56) |
Dec
(46) |
2013 |
Jan
(151) |
Feb
(31) |
Mar
(69) |
Apr
(3) |
May
(8) |
Jun
(5) |
Jul
(1) |
Aug
(8) |
Sep
(11) |
Oct
(9) |
Nov
(21) |
Dec
(12) |
2014 |
Jan
(3) |
Feb
(10) |
Mar
(1) |
Apr
(5) |
May
(37) |
Jun
(40) |
Jul
(20) |
Aug
(3) |
Sep
|
Oct
(57) |
Nov
(43) |
Dec
(13) |
2015 |
Jan
(26) |
Feb
(2) |
Mar
(7) |
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(19) |
Sep
|
Oct
|
Nov
(7) |
Dec
(26) |
2016 |
Jan
(76) |
Feb
(30) |
Mar
(41) |
Apr
(38) |
May
(63) |
Jun
(3) |
Jul
(38) |
Aug
(39) |
Sep
(8) |
Oct
(6) |
Nov
(1) |
Dec
(8) |
2017 |
Jan
(35) |
Feb
(19) |
Mar
(22) |
Apr
(7) |
May
(35) |
Jun
(42) |
Jul
(5) |
Aug
(12) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Fabian K. <fab...@us...> - 2017-08-25 10:47:13
|
Update of /cvsroot/ijbswa/current/doc/webserver/developer-manual In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv9658/doc/webserver/developer-manual Modified Files: index.html Log Message: Regenerate docs Index: index.html =================================================================== RCS file: /cvsroot/ijbswa/current/doc/webserver/developer-manual/index.html,v retrieving revision 1.89 retrieving revision 1.90 diff -C2 -d -r1.89 -r1.90 *** index.html 26 Jun 2017 12:15:26 -0000 1.89 --- index.html 25 Aug 2017 10:47:11 -0000 1.90 *************** *** 20,25 **** "_top">Copyright</a> � 2001-2016 by <a href="https://www.privoxy.org/" target="_top">Privoxy Developers</a></sub><br></p> ! <p class="PUBDATE">$Id: developer-manual.sgml,v 2.83 2017/06/08 ! 13:08:39 fabiankeil Exp $<br></p> <div> <div class="ABSTRACT"> --- 20,25 ---- "_top">Copyright</a> � 2001-2016 by <a href="https://www.privoxy.org/" target="_top">Privoxy Developers</a></sub><br></p> ! <p class="PUBDATE">$Id: developer-manual.sgml,v 2.84 2017/06/26 ! 12:10:07 fabiankeil Exp $<br></p> <div> <div class="ABSTRACT"> |
From: Fabian K. <fab...@us...> - 2017-08-25 10:46:39
|
Update of /cvsroot/ijbswa/current/doc/source In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv9579/doc/source Modified Files: faq.sgml Log Message: FAQ: Change two more SPI links to https Index: faq.sgml =================================================================== RCS file: /cvsroot/ijbswa/current/doc/source/faq.sgml,v retrieving revision 2.135 retrieving revision 2.136 diff -C2 -d -r2.135 -r2.136 *** faq.sgml 27 Mar 2017 10:22:27 -0000 2.135 --- faq.sgml 25 Aug 2017 10:46:37 -0000 2.136 *************** *** 510,514 **** <para> <application>Privoxy</application> is an associated ! project of <ulink url="http://www.spi-inc.org/">Software in the Public Interest (SPI)</ulink>, which allows us to receive tax-deductible donations in the United States. --- 510,514 ---- <para> <application>Privoxy</application> is an associated ! project of <ulink url="https://www.spi-inc.org/">Software in the Public Interest (SPI)</ulink>, which allows us to receive tax-deductible donations in the United States. *************** *** 516,520 **** and <ulink url="https://co.clickandpledge.com/advanced/default.aspx?wid=34115">Click & Pledge</ulink>. For details, please have a look at ! <ulink url="http://www.spi-inc.org/donations">SPI's general donation page</ulink>. </para> --- 516,520 ---- and <ulink url="https://co.clickandpledge.com/advanced/default.aspx?wid=34115">Click & Pledge</ulink>. For details, please have a look at ! <ulink url="https://www.spi-inc.org/donations">SPI's general donation page</ulink>. </para> |
From: Fabian K. <fab...@us...> - 2017-08-12 09:42:34
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13680 Modified Files: fuzz.c Log Message: Fix server-response fuzzing ... which I broke when I added the receive-buffer-size directive. When fuzzing, a zero-size buffer was used which resulted in all fuzzing inputs that were supposed to be treated as server-response being rejected. Setting a receive_buffer_size in process_fuzzed_input() prevents this. The other fuzzing modes weren't affected by the regression. Index: fuzz.c =================================================================== RCS file: /cvsroot/ijbswa/current/fuzz.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** fuzz.c 12 Aug 2017 09:40:22 -0000 1.3 --- fuzz.c 12 Aug 2017 09:42:31 -0000 1.4 *************** *** 548,551 **** --- 548,553 ---- csp->config = &config_stack_storage; csp->config->buffer_limit = 4096 * 1024; + csp->config->receive_buffer_size = 4096; + /* In --stfu mode, these will be ignored ... */ set_debug_level(LOG_LEVEL_ACTIONS|LOG_LEVEL_CONNECT|LOG_LEVEL_DEANIMATE|LOG_LEVEL_INFO|LOG_LEVEL_ERROR|LOG_LEVEL_RE_FILTER|LOG_LEVEL_HEADER|LOG_LEVEL_WRITING|LOG_LEVEL_RECEIVED); |
From: Fabian K. <fab...@us...> - 2017-08-12 09:41:51
|
Update of /cvsroot/ijbswa/current/doc/source In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13563/doc/source Modified Files: copyright.sgml Log Message: Bump copyright Index: copyright.sgml =================================================================== RCS file: /cvsroot/ijbswa/current/doc/source/copyright.sgml,v retrieving revision 2.20 retrieving revision 2.21 diff -C2 -d -r2.20 -r2.21 *** copyright.sgml 8 Jun 2017 13:12:45 -0000 2.20 --- copyright.sgml 12 Aug 2017 09:41:48 -0000 2.21 *************** *** 32,36 **** <para> ! Copyright &my-copy; 2001-2016 by Privoxy Developers <email>pri...@li...</email> </para> --- 32,36 ---- <para> ! Copyright &my-copy; 2001-2017 by Privoxy Developers <email>pri...@li...</email> </para> |
From: Fabian K. <fab...@us...> - 2017-08-12 09:40:53
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13411 Modified Files: pcrs.c Log Message: pcrs_compile_replacement(): Remove an assertion that could be triggered with invalid input Without the assertion the invalid input is properly rejected: Error: Failed to compile pcrs replacement. Error: (pcrs:) Backreference out of range This reverts one half of r1.50 which apparently wasn't properly tested. Index: pcrs.c =================================================================== RCS file: /cvsroot/ijbswa/current/pcrs.c,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** pcrs.c 29 May 2017 10:09:37 -0000 1.52 --- pcrs.c 12 Aug 2017 09:40:50 -0000 1.53 *************** *** 411,415 **** } - assert(l < PCRS_MAX_SUBMATCHES - 1); assert(r->backref[l] < PCRS_MAX_SUBMATCHES + 2); /* Valid and in range? -> record */ --- 411,414 ---- |
From: Fabian K. <fab...@us...> - 2017-08-12 09:40:24
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13363 Modified Files: fuzz.c Log Message: Remove an obsolete comment Index: fuzz.c =================================================================== RCS file: /cvsroot/ijbswa/current/fuzz.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** fuzz.c 12 Aug 2017 09:40:14 -0000 1.2 --- fuzz.c 12 Aug 2017 09:40:22 -0000 1.3 *************** *** 531,536 **** * it like the input type specified. * - * XXX: Does not check malloc succcess. - * * Parameters : * 1 : fuzz_input_type = Type of input. --- 531,534 ---- |
From: Fabian K. <fab...@us...> - 2017-08-12 09:40:16
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv13318 Modified Files: fuzz.c gateway.c Log Message: Compile socks fuzzing code depending on FUZZ instead of FUZZ_SOCKS We no longer allow to use a fuzzing build for non-fuzzing work so unconditionally including the socks fuzzing code doesn't add any additional inconvenience. Index: gateway.c =================================================================== RCS file: /cvsroot/ijbswa/current/gateway.c,v retrieving revision 1.103 retrieving revision 1.104 diff -C2 -d -r1.103 -r1.104 *** gateway.c 1 Jul 2017 18:34:07 -0000 1.103 --- gateway.c 12 Aug 2017 09:40:14 -0000 1.104 *************** *** 645,649 **** ! #ifdef FUZZ_SOCKS /********************************************************************* * --- 645,649 ---- ! #ifdef FUZZ /********************************************************************* * *************** *** 820,824 **** c->dstip[3] = (unsigned char)((web_server_addr ) & 0xff); ! #ifdef FUZZ_SOCKS sfd = 0; #else --- 820,824 ---- c->dstip[3] = (unsigned char)((web_server_addr ) & 0xff); ! #ifdef FUZZ sfd = 0; #else *************** *** 1021,1025 **** } ! #ifdef FUZZ_SOCKS sfd = 0; if (!err && read_socket(sfd, sbuf, 2) != 2) --- 1021,1025 ---- } ! #ifdef FUZZ sfd = 0; if (!err && read_socket(sfd, sbuf, 2) != 2) *************** *** 1112,1116 **** cbuf[client_pos++] = (char)((target_port ) & 0xff); ! #ifndef FUZZ_SOCKS if (write_socket(sfd, cbuf, client_pos)) { --- 1112,1116 ---- cbuf[client_pos++] = (char)((target_port ) & 0xff); ! #ifndef FUZZ if (write_socket(sfd, cbuf, client_pos)) { Index: fuzz.c =================================================================== RCS file: /cvsroot/ijbswa/current/fuzz.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fuzz.c 24 Dec 2016 16:00:49 -0000 1.1 --- fuzz.c 12 Aug 2017 09:40:14 -0000 1.2 *************** *** 60,66 **** static int fuzz_gif(struct client_state *csp, char *fuzz_input_file); static int fuzz_gzip(struct client_state *csp, char *fuzz_input_file); - #ifdef FUZZ_SOCKS static int fuzz_socks(struct client_state *csp, char *fuzz_input_file); - #endif static int fuzz_pcrs_substitute(struct client_state *csp, char *fuzz_input_file); static int fuzz_server_header(struct client_state *csp, char *fuzz_input_file); --- 60,64 ---- *************** *** 86,92 **** { "server-header", "Server header to parse.", 1, fuzz_server_header }, { "server-response", "Server response to parse.", 1, fuzz_server_response }, - #ifdef FUZZ_SOCKS { "socks", "A socks server response. Only reads from stdin!", 1, fuzz_socks }, - #endif }; --- 84,88 ---- *************** *** 429,433 **** - #ifdef FUZZ_SOCKS /********************************************************************* * --- 425,428 ---- *************** *** 449,453 **** return(JB_ERR_OK == socks_fuzz(csp)); } - #endif --- 444,447 ---- |
From: Fabian K. <fab...@us...> - 2017-08-12 09:37:19
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12886 Modified Files: jcc.c project.h Log Message: Add the pointer to the receive buffer to the csp It allows to free it outside of handle_established_connection() and will allow to use it in other functions in the future. Index: project.h =================================================================== RCS file: /cvsroot/ijbswa/current/project.h,v retrieving revision 1.223 retrieving revision 1.224 diff -C2 -d -r1.223 -r1.224 *** project.h 26 Jun 2017 12:13:52 -0000 1.223 --- project.h 12 Aug 2017 09:37:17 -0000 1.224 *************** *** 954,957 **** --- 954,963 ---- struct iob client_iob[1]; + /** Buffer used to briefly store data read from the network + * before forwarding or processing it. + */ + char *receive_buffer; + size_t receive_buffer_size; + /** List of all headers for this request */ struct list headers[1]; Index: jcc.c =================================================================== RCS file: /cvsroot/ijbswa/current/jcc.c,v retrieving revision 1.469 retrieving revision 1.470 diff -C2 -d -r1.469 -r1.470 *** jcc.c 12 Aug 2017 09:36:42 -0000 1.469 --- jcc.c 12 Aug 2017 09:37:17 -0000 1.470 *************** *** 1967,1971 **** static void handle_established_connection(struct client_state *csp) { - char *receive_buffer; char *hdr; char *p; --- 1967,1970 ---- *************** *** 1990,1997 **** int watch_client_socket; #endif - const size_t receive_buffer_size = csp->config->receive_buffer_size; ! receive_buffer = zalloc(receive_buffer_size + 1); ! if (receive_buffer == NULL) { log_error(LOG_LEVEL_ERROR, --- 1989,1996 ---- int watch_client_socket; #endif ! csp->receive_buffer_size = csp->config->receive_buffer_size; ! csp->receive_buffer = zalloc(csp->receive_buffer_size + 1); ! if (csp->receive_buffer == NULL) { log_error(LOG_LEVEL_ERROR, *************** *** 2124,2128 **** } mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2123,2126 ---- *************** *** 2135,2139 **** #endif mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2133,2136 ---- *************** *** 2162,2166 **** #endif /* def HAVE_POLL*/ { ! int max_bytes_to_read = (int)receive_buffer_size; #ifdef FEATURE_CONNECTION_KEEP_ALIVE --- 2159,2163 ---- #endif /* def HAVE_POLL*/ { ! int max_bytes_to_read = (int)csp->receive_buffer_size; #ifdef FEATURE_CONNECTION_KEEP_ALIVE *************** *** 2196,2200 **** if (csp->expected_client_content_length != 0) { ! if (csp->expected_client_content_length < receive_buffer_size) { max_bytes_to_read = (int)csp->expected_client_content_length; --- 2193,2197 ---- if (csp->expected_client_content_length != 0) { ! if (csp->expected_client_content_length < csp->receive_buffer_size) { max_bytes_to_read = (int)csp->expected_client_content_length; *************** *** 2204,2211 **** max_bytes_to_read); } ! assert(max_bytes_to_read <= receive_buffer_size); #endif /* def FEATURE_CONNECTION_KEEP_ALIVE */ ! len = read_socket(csp->cfd, receive_buffer, max_bytes_to_read); if (len <= 0) --- 2201,2208 ---- max_bytes_to_read); } ! assert(max_bytes_to_read <= csp->receive_buffer_size); #endif /* def FEATURE_CONNECTION_KEEP_ALIVE */ ! len = read_socket(csp->cfd, csp->receive_buffer, max_bytes_to_read); if (len <= 0) *************** *** 2234,2242 **** #endif /* def FEATURE_CONNECTION_KEEP_ALIVE */ ! if (write_socket(csp->server_connection.sfd, receive_buffer, (size_t)len)) { log_error(LOG_LEVEL_ERROR, "write to: %s failed: %E", http->host); mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2231,2238 ---- #endif /* def FEATURE_CONNECTION_KEEP_ALIVE */ ! if (write_socket(csp->server_connection.sfd, csp->receive_buffer, (size_t)len)) { log_error(LOG_LEVEL_ERROR, "write to: %s failed: %E", http->host); mark_server_socket_tainted(csp); return; } *************** *** 2272,2276 **** "The server still wants to talk, but the client hung up on us."); mark_server_socket_tainted(csp); - freez(receive_buffer); return; #endif /* def _WIN32 */ --- 2268,2271 ---- *************** *** 2278,2282 **** #endif /* def FEATURE_CONNECTION_KEEP_ALIVE */ ! len = read_socket(csp->server_connection.sfd, receive_buffer, (int)receive_buffer_size); if (len < 0) --- 2273,2277 ---- #endif /* def FEATURE_CONNECTION_KEEP_ALIVE */ ! len = read_socket(csp->server_connection.sfd, csp->receive_buffer, (int)csp->receive_buffer_size); if (len < 0) *************** *** 2293,2297 **** log_error(LOG_LEVEL_ERROR, "CONNECT already confirmed. Unable to tell the client about the problem."); - freez(receive_buffer); return; } --- 2288,2291 ---- *************** *** 2308,2312 **** "Unable to tell the client about the problem."); mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2302,2305 ---- *************** *** 2321,2325 **** if (csp->flags & CSP_FLAG_CHUNKED) { ! if ((len >= 5) && !memcmp(receive_buffer+len-5, "0\r\n\r\n", 5)) { /* XXX: this is a temporary hack */ --- 2314,2318 ---- if (csp->flags & CSP_FLAG_CHUNKED) { ! if ((len >= 5) && !memcmp(csp->receive_buffer+len-5, "0\r\n\r\n", 5)) { /* XXX: this is a temporary hack */ *************** *** 2338,2347 **** * and never (intentionally) writing to the last byte. * ! * receive_buffer_size is the size of the part of the * buffer we intentionally write to, but we actually ! * allocated receive_buffer_size+1 bytes so the assertion * stays within the allocated range. */ ! assert(receive_buffer[receive_buffer_size] == '\0'); /* --- 2331,2340 ---- * and never (intentionally) writing to the last byte. * ! * csp->receive_buffer_size is the size of the part of the * buffer we intentionally write to, but we actually ! * allocated csp->receive_buffer_size+1 bytes so the assertion * stays within the allocated range. */ ! assert(csp->receive_buffer[csp->receive_buffer_size] == '\0'); /* *************** *** 2349,2354 **** * XXX: do we still need this with filter_popups gone? */ ! assert(len <= receive_buffer_size); ! receive_buffer[len] = '\0'; /* --- 2342,2347 ---- * XXX: do we still need this with filter_popups gone? */ ! assert(len <= csp->receive_buffer_size); ! csp->receive_buffer[len] = '\0'; /* *************** *** 2429,2433 **** freez(p); mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2422,2425 ---- *************** *** 2444,2449 **** * Let's pretend the server just sent us a blank line. */ ! snprintf(receive_buffer, receive_buffer_size, "\r\n"); ! len = (int)strlen(receive_buffer); /* --- 2436,2441 ---- * Let's pretend the server just sent us a blank line. */ ! snprintf(csp->receive_buffer, csp->receive_buffer_size, "\r\n"); ! len = (int)strlen(csp->receive_buffer); /* *************** *** 2469,2473 **** * header, flush the iob and buf, and get out of the way. */ ! if (add_to_iob(csp->iob, csp->config->buffer_limit, receive_buffer, len)) { size_t hdrlen; --- 2461,2465 ---- * header, flush the iob and buf, and get out of the way. */ ! if (add_to_iob(csp->iob, csp->config->buffer_limit, csp->receive_buffer, len)) { size_t hdrlen; *************** *** 2488,2492 **** send_crunch_response(csp, rsp); mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2480,2483 ---- *************** *** 2495,2499 **** if (write_socket(csp->cfd, hdr, hdrlen) || ((flushed = flush_socket(csp->cfd, csp->iob)) < 0) ! || (write_socket(csp->cfd, receive_buffer, (size_t)len))) { log_error(LOG_LEVEL_CONNECT, --- 2486,2490 ---- if (write_socket(csp->cfd, hdr, hdrlen) || ((flushed = flush_socket(csp->cfd, csp->iob)) < 0) ! || (write_socket(csp->cfd, csp->receive_buffer, (size_t)len))) { log_error(LOG_LEVEL_CONNECT, *************** *** 2501,2505 **** freez(hdr); mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2492,2495 ---- *************** *** 2518,2526 **** else { ! if (write_socket(csp->cfd, receive_buffer, (size_t)len)) { log_error(LOG_LEVEL_ERROR, "write to client failed: %E"); mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2508,2515 ---- else { ! if (write_socket(csp->cfd, csp->receive_buffer, (size_t)len)) { log_error(LOG_LEVEL_ERROR, "write to client failed: %E"); mark_server_socket_tainted(csp); return; } *************** *** 2536,2540 **** * little we can do but send our static out-of-memory page. */ ! if (add_to_iob(csp->iob, csp->config->buffer_limit, receive_buffer, len)) { log_error(LOG_LEVEL_ERROR, "Out of memory while looking for end of server headers."); --- 2525,2529 ---- * little we can do but send our static out-of-memory page. */ ! if (add_to_iob(csp->iob, csp->config->buffer_limit, csp->receive_buffer, len)) { log_error(LOG_LEVEL_ERROR, "Out of memory while looking for end of server headers."); *************** *** 2542,2546 **** send_crunch_response(csp, rsp); mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2531,2534 ---- *************** *** 2563,2567 **** strlen(INVALID_SERVER_HEADERS_RESPONSE)); mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2551,2554 ---- *************** *** 2609,2613 **** free_http_request(http); mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2596,2599 ---- *************** *** 2650,2654 **** free_http_request(http); mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2636,2639 ---- *************** *** 2685,2689 **** freez(hdr); mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2670,2673 ---- *************** *** 2716,2720 **** freez(hdr); mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2700,2703 ---- *************** *** 2741,2745 **** strlen(INVALID_SERVER_HEADERS_RESPONSE)); mark_server_socket_tainted(csp); - freez(receive_buffer); return; } --- 2724,2727 ---- *************** *** 2748,2755 **** } mark_server_socket_tainted(csp); - freez(receive_buffer); return; /* huh? we should never get here */ } - freez(receive_buffer); if (csp->content_length == 0) --- 2730,2735 ---- *************** *** 3033,3036 **** --- 3013,3017 ---- handle_established_connection(csp); + freez(csp->receive_buffer); } *************** *** 3091,3094 **** --- 3072,3076 ---- handle_established_connection(csp); + freez(csp->receive_buffer); return 0; |
From: Fabian K. <fab...@us...> - 2017-08-12 09:36:45
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12786 Modified Files: jcc.c Log Message: Streamline handle_established_connection()'s parameter list csp references fwd already so there's no need to pass it as separate parameter as well. Index: jcc.c =================================================================== RCS file: /cvsroot/ijbswa/current/jcc.c,v retrieving revision 1.468 retrieving revision 1.469 diff -C2 -d -r1.468 -r1.469 *** jcc.c 12 Aug 2017 09:33:25 -0000 1.468 --- jcc.c 12 Aug 2017 09:36:42 -0000 1.469 *************** *** 1965,1970 **** * *********************************************************************/ ! static void handle_established_connection(struct client_state *csp, ! const struct forward_spec *fwd) { char *receive_buffer; --- 1965,1969 ---- * *********************************************************************/ ! static void handle_established_connection(struct client_state *csp) { char *receive_buffer; *************** *** 2285,2289 **** log_error(LOG_LEVEL_ERROR, "read from: %s failed: %E", http->host); ! if (http->ssl && (fwd->forward_host == NULL)) { /* --- 2284,2288 ---- log_error(LOG_LEVEL_ERROR, "read from: %s failed: %E", http->host); ! if (http->ssl && (csp->fwd == NULL)) { /* *************** *** 3033,3037 **** csp->server_connection.request_sent = time(NULL); ! handle_established_connection(csp, fwd); } --- 3032,3036 ---- csp->server_connection.request_sent = time(NULL); ! handle_established_connection(csp); } *************** *** 3070,3073 **** --- 3069,3073 ---- } } + csp->fwd = &fwd; csp->content_type |= CT_GIF; csp->action->flags |= ACTION_DEANIMATE; *************** *** 3090,3094 **** cgi_init_error_messages(); ! handle_established_connection(csp, &fwd); return 0; --- 3090,3094 ---- cgi_init_error_messages(); ! handle_established_connection(csp); return 0; |
From: Fabian K. <fab...@us...> - 2017-08-12 09:35:34
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12597 Modified Files: loadcfg.c Log Message: load_config(): Rearrange code to prevent a useless store Index: loadcfg.c =================================================================== RCS file: /cvsroot/ijbswa/current/loadcfg.c,v retrieving revision 1.165 retrieving revision 1.166 diff -C2 -d -r1.165 -r1.166 *** loadcfg.c 26 Jun 2017 12:13:52 -0000 1.165 --- loadcfg.c 12 Aug 2017 09:35:32 -0000 1.166 *************** *** 1991,1997 **** ! config->need_bind = 1; ! ! if (current_configfile) { struct configuration_spec * oldcfg = (struct configuration_spec *) --- 1991,1999 ---- ! if (current_configfile == NULL) ! { ! config->need_bind = 1; ! } ! else { struct configuration_spec * oldcfg = (struct configuration_spec *) |
From: Fabian K. <fab...@us...> - 2017-08-12 09:33:27
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12307 Modified Files: jcc.c Log Message: Warn when still using select() Index: jcc.c =================================================================== RCS file: /cvsroot/ijbswa/current/jcc.c,v retrieving revision 1.467 retrieving revision 1.468 diff -C2 -d -r1.467 -r1.468 *** jcc.c 26 Jun 2017 12:18:21 -0000 1.467 --- jcc.c 12 Aug 2017 09:33:25 -0000 1.468 *************** *** 106,109 **** --- 106,110 ---- # include <select.h> # endif + #warning poll() appears to be unavailable. Your platform will become unsupported in the future. #endif /* HAVE_POLL */ |
From: Fabian K. <fab...@us...> - 2017-08-12 09:33:16
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv12259 Modified Files: miscutil.c Log Message: Warn when compiling without calloc() Index: miscutil.c =================================================================== RCS file: /cvsroot/ijbswa/current/miscutil.c,v retrieving revision 1.85 retrieving revision 1.86 diff -C2 -d -r1.85 -r1.86 *** miscutil.c 8 Jun 2017 13:11:08 -0000 1.85 --- miscutil.c 12 Aug 2017 09:33:14 -0000 1.86 *************** *** 88,91 **** --- 88,92 ---- ret = calloc(1, size); #else + #warning calloc appears to be unavailable. Your platform will become unsupported in the future if ((ret = (void *)malloc(size)) != NULL) { |
From: Lee <le...@us...> - 2017-07-10 21:19:38
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv4560/current Modified Files: GNUmakefile.in Log Message: add 'make dok-tidy' to the list of things to do for a 'make dok' Index: GNUmakefile.in =================================================================== RCS file: /cvsroot/ijbswa/current/GNUmakefile.in,v retrieving revision 1.263 retrieving revision 1.264 diff -C2 -d -r1.263 -r1.264 *** GNUmakefile.in 1 Jun 2017 13:22:46 -0000 1.263 --- GNUmakefile.in 10 Jul 2017 21:19:36 -0000 1.264 *************** *** 566,570 **** # Main documentation target. ! dok: dok-release dok-devel dok-user dok-faq dok-readme dok-webserver dok-authors dok-index @$(ECHO) Documentation created. --- 566,570 ---- # Main documentation target. ! dok: dok-release dok-devel dok-user dok-faq dok-readme dok-webserver dok-authors dok-index dok-tidy @$(ECHO) Documentation created. |
From: Lee <le...@us...> - 2017-07-01 18:34:10
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv29711/current Modified Files: gateway.c Log Message: bump copyright Index: gateway.c =================================================================== RCS file: /cvsroot/ijbswa/current/gateway.c,v retrieving revision 1.102 retrieving revision 1.103 diff -C2 -d -r1.102 -r1.103 *** gateway.c 1 Jul 2017 17:08:25 -0000 1.102 --- gateway.c 1 Jul 2017 18:34:07 -0000 1.103 *************** *** 8,12 **** * or SOCKS5 proxy). * ! * Copyright : Written by and Copyright (C) 2001-2016 the * Privoxy team. http://www.privoxy.org/ * --- 8,12 ---- * or SOCKS5 proxy). * ! * Copyright : Written by and Copyright (C) 2001-2017 the * Privoxy team. http://www.privoxy.org/ * |
From: Lee <le...@us...> - 2017-07-01 18:33:04
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv29638/current Modified Files: parsers.c Log Message: bump copyright Index: parsers.c =================================================================== RCS file: /cvsroot/ijbswa/current/parsers.c,v retrieving revision 1.313 retrieving revision 1.314 diff -C2 -d -r1.313 -r1.314 *** parsers.c 1 Jul 2017 17:14:12 -0000 1.313 --- parsers.c 1 Jul 2017 18:33:02 -0000 1.314 *************** *** 6,10 **** * Purpose : Declares functions to parse/crunch headers and pages. * ! * Copyright : Written by and Copyright (C) 2001-2016 the * Privoxy team. http://www.privoxy.org/ * --- 6,10 ---- * Purpose : Declares functions to parse/crunch headers and pages. * ! * Copyright : Written by and Copyright (C) 2001-2017 the * Privoxy team. http://www.privoxy.org/ * |
From: Lee <le...@us...> - 2017-07-01 17:14:14
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv26304/current Modified Files: parsers.c Log Message: get rid of another compiler warning on Windows for %llu i686-w64-mingw32-gcc -c -pipe -O2 -DWINVER=0x501 -mwindows -Wall -Ipcre parsers.c -o parsers.o parsers.c: In function 'create_content_length_header': parsers.c:4671:36: warning: unknown conversion type character 'l' in format [-Wformat=] snprintf(header, buffer_length, "Content-Length: %llu", content_length); ^ parsers.c:4671:36: warning: too many arguments for format [-Wformat-extra-args] Index: parsers.c =================================================================== RCS file: /cvsroot/ijbswa/current/parsers.c,v retrieving revision 1.312 retrieving revision 1.313 diff -C2 -d -r1.312 -r1.313 *** parsers.c 8 Jun 2017 13:13:26 -0000 1.312 --- parsers.c 1 Jul 2017 17:14:12 -0000 1.313 *************** *** 4647,4651 **** --- 4647,4658 ---- char *header, size_t buffer_length) { + #ifdef _WIN32 + #if SIZEOF_LONG_LONG < 8 + #error sizeof(unsigned long long) too small + #endif + snprintf(header, buffer_length, "Content-Length: %I64u", content_length); + #else snprintf(header, buffer_length, "Content-Length: %llu", content_length); + #endif } |
From: Lee <le...@us...> - 2017-07-01 17:08:27
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv26185/current Modified Files: gateway.c Log Message: fix format specifier in log_error for unsigned long long variables Index: gateway.c =================================================================== RCS file: /cvsroot/ijbswa/current/gateway.c,v retrieving revision 1.101 retrieving revision 1.102 diff -C2 -d -r1.101 -r1.102 *** gateway.c 4 Jun 2017 14:42:13 -0000 1.101 --- gateway.c 1 Jul 2017 17:08:25 -0000 1.102 *************** *** 1160,1164 **** (unsigned long long)(csp->client_iob->eod - csp->client_iob->cur); log_error(LOG_LEVEL_CONNECT, ! "Optimistically sending %d bytes of client body. Expected %d", csp->expected_client_content_length, buffered_request_bytes); assert(csp->expected_client_content_length == buffered_request_bytes); --- 1160,1164 ---- (unsigned long long)(csp->client_iob->eod - csp->client_iob->cur); log_error(LOG_LEVEL_CONNECT, ! "Optimistically sending %llu bytes of client body. Expected %llu", csp->expected_client_content_length, buffered_request_bytes); assert(csp->expected_client_content_length == buffered_request_bytes); *************** *** 1166,1170 **** { log_error(LOG_LEVEL_CONNECT, ! "optimistically writing %d bytes of client body to: %s failed: %E", buffered_request_bytes, csp->http->hostport); return(JB_INVALID_SOCKET); --- 1166,1170 ---- { log_error(LOG_LEVEL_CONNECT, ! "optimistically writing %llu bytes of client body to: %s failed: %E", buffered_request_bytes, csp->http->hostport); return(JB_INVALID_SOCKET); |
From: Fabian K. <fab...@us...> - 2017-06-26 12:18:24
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22160 Modified Files: jcc.c Log Message: listen_loop(): Reuse a single thread attribute object The object doesn't change and creating a new one for every thread is a waste of (cpu) time. Sponsored by: Robert Klemme Index: jcc.c =================================================================== RCS file: /cvsroot/ijbswa/current/jcc.c,v retrieving revision 1.466 retrieving revision 1.467 diff -C2 -d -r1.466 -r1.467 *** jcc.c 26 Jun 2017 12:17:57 -0000 1.466 --- jcc.c 26 Jun 2017 12:18:21 -0000 1.467 *************** *** 4297,4300 **** --- 4297,4306 ---- struct configuration_spec *config; unsigned int active_threads = 0; + #if defined(FEATURE_PTHREAD) + pthread_attr_t attrs; + + pthread_attr_init(&attrs); + pthread_attr_setdetachstate(&attrs, PTHREAD_CREATE_DETACHED); + #endif config = load_config(); *************** *** 4452,4463 **** { pthread_t the_thread; - pthread_attr_t attrs; - pthread_attr_init(&attrs); - pthread_attr_setdetachstate(&attrs, PTHREAD_CREATE_DETACHED); errno = pthread_create(&the_thread, &attrs, (void * (*)(void *))serve, csp); child_id = errno ? -1 : 0; - pthread_attr_destroy(&attrs); } #endif --- 4458,4465 ---- *************** *** 4624,4627 **** --- 4626,4633 ---- } + #if defined(FEATURE_PTHREAD) + pthread_attr_destroy(&attrs); + #endif + /* NOTREACHED unless FEATURE_GRACEFUL_TERMINATION is defined */ |
From: Fabian K. <fab...@us...> - 2017-06-26 12:18:08
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22146 Modified Files: loaders.c Log Message: Remove an obsolete NULL check Index: loaders.c =================================================================== RCS file: /cvsroot/ijbswa/current/loaders.c,v retrieving revision 1.108 retrieving revision 1.109 diff -C2 -d -r1.108 -r1.109 *** loaders.c 26 Jun 2017 12:17:57 -0000 1.108 --- loaders.c 26 Jun 2017 12:18:06 -0000 1.109 *************** *** 314,323 **** fs->lastmodified = statbuf->st_mtime; - if (fs->filename == NULL) - { - /* Out of memory error */ - freez (fs); - return 1; - } *newfl = fs; return 1; --- 314,317 ---- |
From: Fabian K. <fab...@us...> - 2017-06-26 12:18:00
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22113 Modified Files: jcc.c loaders.c loaders.h Log Message: Free csp resources in the thread that belongs to the csp ... instead of the main thread which has enough on its plate already. Sponsored by: Robert Klemme Index: loaders.c =================================================================== RCS file: /cvsroot/ijbswa/current/loaders.c,v retrieving revision 1.107 retrieving revision 1.108 diff -C2 -d -r1.107 -r1.108 *** loaders.c 26 Jun 2017 12:17:43 -0000 1.107 --- loaders.c 26 Jun 2017 12:17:57 -0000 1.108 *************** *** 220,225 **** last_active->next = client_list->next; - free_csp_resources(csp); - #ifdef FEATURE_STATISTICS urls_read++; --- 220,223 ---- Index: jcc.c =================================================================== RCS file: /cvsroot/ijbswa/current/jcc.c,v retrieving revision 1.465 retrieving revision 1.466 diff -C2 -d -r1.465 -r1.466 *** jcc.c 26 Jun 2017 12:14:25 -0000 1.465 --- jcc.c 26 Jun 2017 12:17:57 -0000 1.466 *************** *** 3387,3390 **** --- 3387,3392 ---- } + free_csp_resources(csp); + csp->flags &= ~CSP_FLAG_ACTIVE; Index: loaders.h =================================================================== RCS file: /cvsroot/ijbswa/current/loaders.h,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** loaders.h 24 Dec 2016 16:00:49 -0000 1.33 --- loaders.h 26 Jun 2017 12:17:57 -0000 1.34 *************** *** 40,43 **** --- 40,44 ---- extern unsigned int sweep(void); + extern void free_csp_resources(struct client_state *csp); extern char *read_config_line(FILE *fp, unsigned long *linenum, char **buf); extern int check_file_changed(const struct file_list * current, |
From: Fabian K. <fab...@us...> - 2017-06-26 12:17:46
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22103 Modified Files: loaders.c Log Message: Factor free_csp_resources() out of sweep() Sponsored by: Robert Klemme Index: loaders.c =================================================================== RCS file: /cvsroot/ijbswa/current/loaders.c,v retrieving revision 1.106 retrieving revision 1.107 diff -C2 -d -r1.106 -r1.107 *** loaders.c 24 Dec 2016 16:00:49 -0000 1.106 --- loaders.c 26 Jun 2017 12:17:43 -0000 1.107 *************** *** 84,87 **** --- 84,123 ---- }; + /********************************************************************* + * + * Function : free_csp_resources + * + * Description : Frees memory referenced by the csp that isn't + * shared with other csps. + * + * Parameters : + * 1 : csp = Current client state (buffers, headers, etc...) + * + * Returns : N/A + * + *********************************************************************/ + void free_csp_resources(struct client_state *csp) + { + freez(csp->ip_addr_str); + #ifdef FEATURE_CLIENT_TAGS + freez(csp->client_address); + #endif + freez(csp->listen_addr_str); + freez(csp->client_iob->buf); + freez(csp->iob->buf); + freez(csp->error_message); + + if (csp->action->flags & ACTION_FORWARD_OVERRIDE && + NULL != csp->fwd) + { + unload_forward_spec(csp->fwd); + } + free_http_request(csp->http); + + destroy_list(csp->headers); + destroy_list(csp->tags); + + free_current_action(csp->action); + } /********************************************************************* *************** *** 184,207 **** last_active->next = client_list->next; ! freez(csp->ip_addr_str); ! #ifdef FEATURE_CLIENT_TAGS ! freez(csp->client_address); ! #endif ! freez(csp->listen_addr_str); ! freez(csp->client_iob->buf); ! freez(csp->iob->buf); ! freez(csp->error_message); ! ! if (csp->action->flags & ACTION_FORWARD_OVERRIDE && ! NULL != csp->fwd) ! { ! unload_forward_spec(csp->fwd); ! } ! free_http_request(csp->http); ! ! destroy_list(csp->headers); ! destroy_list(csp->tags); ! ! free_current_action(csp->action); #ifdef FEATURE_STATISTICS --- 220,224 ---- last_active->next = client_list->next; ! free_csp_resources(csp); #ifdef FEATURE_STATISTICS |
From: Fabian K. <fab...@us...> - 2017-06-26 12:17:36
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22091 Modified Files: config Log Message: Fix a comment that described the effect of debug 1024 incorrectly The comment is correct in the source file already but the config file generation requires manual labour and the "[m]anual config fixes" I applied in r1.100 (2009) added the comment at the wrong place. Index: config =================================================================== RCS file: /cvsroot/ijbswa/current/config,v retrieving revision 1.115 retrieving revision 1.116 diff -C2 -d -r1.115 -r1.116 *** config 26 Jun 2017 12:17:17 -0000 1.115 --- config 26 Jun 2017 12:17:34 -0000 1.116 *************** *** 612,616 **** # #debug 1 # Log the destination for each request Privoxy let through. See also debug 1024. ! #debug 1024 # Actions that are applied to all sites and maybe overruled later on. #debug 4096 # Startup banner and warnings #debug 8192 # Non-fatal errors --- 612,616 ---- # #debug 1 # Log the destination for each request Privoxy let through. See also debug 1024. ! #debug 1024 # Log the destination for requests Privoxy didn't let through, and the reason why. #debug 4096 # Startup banner and warnings #debug 8192 # Non-fatal errors |
From: Fabian K. <fab...@us...> - 2017-06-26 12:17:20
|
Update of /cvsroot/ijbswa/current In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22079 Modified Files: config Log Message: Rebuild config file with enable-accept-filter documentation Sponsored by: Robert Klemme Index: config =================================================================== RCS file: /cvsroot/ijbswa/current/config,v retrieving revision 1.114 retrieving revision 1.115 diff -C2 -d -r1.114 -r1.115 *** config 26 Jun 2017 12:16:21 -0000 1.114 --- config 26 Jun 2017 12:17:17 -0000 1.115 *************** *** 1960,1964 **** #listen-backlog -1 # ! # 6.11. handle-as-empty-doc-returns-ok # ===================================== # --- 1960,2006 ---- #listen-backlog -1 # ! # 6.11. enable-accept-filter ! # =========================== ! # ! # Specifies: ! # ! # Whether or not Privoxy should use an accept filter ! # ! # Type of value: ! # ! # 0 or 1 ! # ! # Default value: ! # ! # 0 ! # ! # Effect if unset: ! # ! # No accept filter is enabled. ! # ! # Notes: ! # ! # Accept filters reduce the number of context switches by not ! # passing sockets for new connections to Privoxy until a ! # complete HTTP request is available. ! # ! # As a result, Privoxy can process the whole request right away ! # without having to wait for additional data first. ! # ! # For this option to work, Privoxy has to be compiled with ! # FEATURE_ACCEPT_FILTER and the operating system has to support ! # it (which may require loading a kernel module). ! # ! # Currently accept filters are only supported on FreeBSD-based ! # systems. Check the accf_http(9) man page to learn how to ! # enable the support in the operating system. ! # ! # Examples: ! # ! # enable-accept-filter 1 ! # ! #enable-accept-filter 1 ! # ! # 6.12. handle-as-empty-doc-returns-ok # ===================================== # *************** *** 1998,2002 **** #handle-as-empty-doc-returns-ok 1 # ! # 6.12. enable-compression # ========================= # --- 2040,2044 ---- #handle-as-empty-doc-returns-ok 1 # ! # 6.13. enable-compression # ========================= # *************** *** 2039,2043 **** #enable-compression 1 # ! # 6.13. compression-level # ======================== # --- 2081,2085 ---- #enable-compression 1 # ! # 6.14. compression-level # ======================== # *************** *** 2085,2089 **** #compression-level 1 # ! # 6.14. client-header-order # ========================== # --- 2127,2131 ---- #compression-level 1 # ! # 6.15. client-header-order # ========================== # *************** *** 2133,2137 **** # # ! # 6.15. client-specific-tag # ========================== # --- 2175,2179 ---- # # ! # 6.16. client-specific-tag # ========================== # *************** *** 2198,2202 **** # # ! # 6.16. client-tag-lifetime # ========================== # --- 2240,2244 ---- # # ! # 6.17. client-tag-lifetime # ========================== # *************** *** 2239,2243 **** # # ! # 6.17. trust-x-forwarded-for # ============================ # --- 2281,2285 ---- # # ! # 6.18. trust-x-forwarded-for # ============================ # *************** *** 2294,2298 **** # # ! # 6.18. receive-buffer-size # ========================== # --- 2336,2340 ---- # # ! # 6.19. receive-buffer-size # ========================== # |
From: Fabian K. <fab...@us...> - 2017-06-26 12:16:49
|
Update of /cvsroot/ijbswa/current/doc/webserver/user-manual In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22035/doc/webserver/user-manual Modified Files: actions-file.html appendix.html config.html index.html Log Message: Rebuild user-manual with enable-accept-filter documentation Sponsored by: Robert Klemme Index: actions-file.html =================================================================== RCS file: /cvsroot/ijbswa/current/doc/webserver/user-manual/actions-file.html,v retrieving revision 1.107 retrieving revision 1.108 diff -C2 -d -r1.107 -r1.108 *** actions-file.html 26 Jun 2017 12:15:26 -0000 1.107 --- actions-file.html 26 Jun 2017 12:16:47 -0000 1.108 *************** *** 101,105 **** in <tt class="FILENAME">default.action</tt> are:</p> <div class="TABLE"> ! <a name="AEN2892" id="AEN2892"></a> <p><b>Table 1. Default Configurations</b></p> <table border="1" frame="border" rules="all" class="CALSTABLE"> --- 101,105 ---- in <tt class="FILENAME">default.action</tt> are:</p> <div class="TABLE"> ! <a name="AEN2924" id="AEN2924"></a> <p><b>Table 1. Default Configurations</b></p> <table border="1" frame="border" rules="all" class="CALSTABLE"> Index: index.html =================================================================== RCS file: /cvsroot/ijbswa/current/doc/webserver/user-manual/index.html,v retrieving revision 1.128 retrieving revision 1.129 diff -C2 -d -r1.128 -r1.129 *** index.html 26 Jun 2017 12:15:27 -0000 1.128 --- index.html 26 Jun 2017 12:16:47 -0000 1.129 *************** *** 248,265 **** "config.html#LISTEN-BACKLOG">listen-backlog</a></dt> <dt>7.6.11. <a href= ! "config.html#HANDLE-AS-EMPTY-DOC-RETURNS-OK">handle-as-empty-doc-returns-ok</a></dt> <dt>7.6.12. <a href= ! "config.html#ENABLE-COMPRESSION">enable-compression</a></dt> <dt>7.6.13. <a href= ! "config.html#COMPRESSION-LEVEL">compression-level</a></dt> <dt>7.6.14. <a href= ! "config.html#CLIENT-HEADER-ORDER">client-header-order</a></dt> <dt>7.6.15. <a href= ! "config.html#CLIENT-SPECIFIC-TAG">client-specific-tag</a></dt> <dt>7.6.16. <a href= ! "config.html#CLIENT-TAG-LIFETIME">client-tag-lifetime</a></dt> <dt>7.6.17. <a href= ! "config.html#TRUST-X-FORWARDED-FOR">trust-x-forwarded-for</a></dt> <dt>7.6.18. <a href= "config.html#RECEIVE-BUFFER-SIZE">receive-buffer-size</a></dt> </dl> --- 248,267 ---- "config.html#LISTEN-BACKLOG">listen-backlog</a></dt> <dt>7.6.11. <a href= ! "config.html#ENABLE-ACCEPT-FILTER">enable-accept-filter</a></dt> <dt>7.6.12. <a href= ! "config.html#HANDLE-AS-EMPTY-DOC-RETURNS-OK">handle-as-empty-doc-returns-ok</a></dt> <dt>7.6.13. <a href= ! "config.html#ENABLE-COMPRESSION">enable-compression</a></dt> <dt>7.6.14. <a href= ! "config.html#COMPRESSION-LEVEL">compression-level</a></dt> <dt>7.6.15. <a href= ! "config.html#CLIENT-HEADER-ORDER">client-header-order</a></dt> <dt>7.6.16. <a href= ! "config.html#CLIENT-SPECIFIC-TAG">client-specific-tag</a></dt> <dt>7.6.17. <a href= ! "config.html#CLIENT-TAG-LIFETIME">client-tag-lifetime</a></dt> <dt>7.6.18. <a href= + "config.html#TRUST-X-FORWARDED-FOR">trust-x-forwarded-for</a></dt> + <dt>7.6.19. <a href= "config.html#RECEIVE-BUFFER-SIZE">receive-buffer-size</a></dt> </dl> Index: config.html =================================================================== RCS file: /cvsroot/ijbswa/current/doc/webserver/user-manual/config.html,v retrieving revision 1.82 retrieving revision 1.83 diff -C2 -d -r1.82 -r1.83 *** config.html 26 Jun 2017 12:15:27 -0000 1.82 --- config.html 26 Jun 2017 12:16:47 -0000 1.83 *************** *** 2389,2394 **** </div> <div class="SECT3"> <h4 class="SECT3"><a name="HANDLE-AS-EMPTY-DOC-RETURNS-OK" id= ! "HANDLE-AS-EMPTY-DOC-RETURNS-OK">7.6.11. handle-as-empty-doc-returns-ok</a></h4> <div class="VARIABLELIST"> --- 2389,2438 ---- </div> <div class="SECT3"> + <h4 class="SECT3"><a name="ENABLE-ACCEPT-FILTER" id= + "ENABLE-ACCEPT-FILTER">7.6.11. enable-accept-filter</a></h4> + <div class="VARIABLELIST"> + <dl> + <dt>Specifies:</dt> + <dd> + <p>Whether or not Privoxy should use an accept filter</p> + </dd> + <dt>Type of value:</dt> + <dd> + <p><tt class="REPLACEABLE"><i>0 or 1</i></tt></p> + </dd> + <dt>Default value:</dt> + <dd> + <p>0</p> + </dd> + <dt>Effect if unset:</dt> + <dd> + <p>No accept filter is enabled.</p> + </dd> + <dt>Notes:</dt> + <dd> + <p>Accept filters reduce the number of context switches by not + passing sockets for new connections to Privoxy until a complete + HTTP request is available.</p> + <p>As a result, Privoxy can process the whole request right + away without having to wait for additional data first.</p> + <p>For this option to work, Privoxy has to be compiled with + FEATURE_ACCEPT_FILTER and the operating system has to support + it (which may require loading a kernel module).</p> + <p>Currently accept filters are only supported on FreeBSD-based + systems. Check the <a href= + "https://www.freebsd.org/cgi/man.cgi?query=accf_http" target= + "_top">accf_http(9) man page</a> to learn how to enable the + support in the operating system.</p> + </dd> + <dt>Examples:</dt> + <dd> + <p>enable-accept-filter 1</p> + </dd> + </dl> + </div> + </div> + <div class="SECT3"> <h4 class="SECT3"><a name="HANDLE-AS-EMPTY-DOC-RETURNS-OK" id= ! "HANDLE-AS-EMPTY-DOC-RETURNS-OK">7.6.12. handle-as-empty-doc-returns-ok</a></h4> <div class="VARIABLELIST"> *************** *** 2437,2441 **** <div class="SECT3"> <h4 class="SECT3"><a name="ENABLE-COMPRESSION" id= ! "ENABLE-COMPRESSION">7.6.12. enable-compression</a></h4> <div class="VARIABLELIST"> <dl> --- 2481,2485 ---- <div class="SECT3"> <h4 class="SECT3"><a name="ENABLE-COMPRESSION" id= ! "ENABLE-COMPRESSION">7.6.13. enable-compression</a></h4> <div class="VARIABLELIST"> <dl> *************** *** 2480,2484 **** <div class="SECT3"> <h4 class="SECT3"><a name="COMPRESSION-LEVEL" id= ! "COMPRESSION-LEVEL">7.6.13. compression-level</a></h4> <div class="VARIABLELIST"> <dl> --- 2524,2528 ---- <div class="SECT3"> <h4 class="SECT3"><a name="COMPRESSION-LEVEL" id= ! "COMPRESSION-LEVEL">7.6.14. compression-level</a></h4> <div class="VARIABLELIST"> <dl> *************** *** 2534,2538 **** <div class="SECT3"> <h4 class="SECT3"><a name="CLIENT-HEADER-ORDER" id= ! "CLIENT-HEADER-ORDER">7.6.14. client-header-order</a></h4> <div class="VARIABLELIST"> <dl> --- 2578,2582 ---- <div class="SECT3"> <h4 class="SECT3"><a name="CLIENT-HEADER-ORDER" id= ! "CLIENT-HEADER-ORDER">7.6.15. client-header-order</a></h4> <div class="VARIABLELIST"> <dl> *************** *** 2572,2576 **** <div class="SECT3"> <h4 class="SECT3"><a name="CLIENT-SPECIFIC-TAG" id= ! "CLIENT-SPECIFIC-TAG">7.6.15. client-specific-tag</a></h4> <div class="VARIABLELIST"> <dl> --- 2616,2620 ---- <div class="SECT3"> <h4 class="SECT3"><a name="CLIENT-SPECIFIC-TAG" id= ! "CLIENT-SPECIFIC-TAG">7.6.16. client-specific-tag</a></h4> <div class="VARIABLELIST"> <dl> *************** *** 2655,2659 **** <div class="SECT3"> <h4 class="SECT3"><a name="CLIENT-TAG-LIFETIME" id= ! "CLIENT-TAG-LIFETIME">7.6.16. client-tag-lifetime</a></h4> <div class="VARIABLELIST"> <dl> --- 2699,2703 ---- <div class="SECT3"> <h4 class="SECT3"><a name="CLIENT-TAG-LIFETIME" id= ! "CLIENT-TAG-LIFETIME">7.6.17. client-tag-lifetime</a></h4> <div class="VARIABLELIST"> <dl> *************** *** 2713,2717 **** <div class="SECT3"> <h4 class="SECT3"><a name="TRUST-X-FORWARDED-FOR" id= ! "TRUST-X-FORWARDED-FOR">7.6.17. trust-x-forwarded-for</a></h4> <div class="VARIABLELIST"> <dl> --- 2757,2761 ---- <div class="SECT3"> <h4 class="SECT3"><a name="TRUST-X-FORWARDED-FOR" id= ! "TRUST-X-FORWARDED-FOR">7.6.18. trust-x-forwarded-for</a></h4> <div class="VARIABLELIST"> <dl> *************** *** 2782,2786 **** <div class="SECT3"> <h4 class="SECT3"><a name="RECEIVE-BUFFER-SIZE" id= ! "RECEIVE-BUFFER-SIZE">7.6.18. receive-buffer-size</a></h4> <div class="VARIABLELIST"> <dl> --- 2826,2830 ---- <div class="SECT3"> <h4 class="SECT3"><a name="RECEIVE-BUFFER-SIZE" id= ! "RECEIVE-BUFFER-SIZE">7.6.19. receive-buffer-size</a></h4> <div class="VARIABLELIST"> <dl> Index: appendix.html =================================================================== RCS file: /cvsroot/ijbswa/current/doc/webserver/user-manual/appendix.html,v retrieving revision 1.116 retrieving revision 1.117 diff -C2 -d -r1.116 -r1.117 *** appendix.html 26 Jun 2017 12:15:27 -0000 1.116 --- appendix.html 26 Jun 2017 12:16:47 -0000 1.117 *************** *** 281,285 **** <ul> <li> ! <p>Privoxy main page:</p><a name="AEN6067" id="AEN6067"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/" target= --- 281,285 ---- <ul> <li> ! <p>Privoxy main page:</p><a name="AEN6099" id="AEN6099"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/" target= *************** *** 293,298 **** <li> <p>Show information about the current configuration, including ! viewing and editing of actions files:</p><a name="AEN6075" id= ! "AEN6075"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/show-status" target= --- 293,298 ---- <li> <p>Show information about the current configuration, including ! viewing and editing of actions files:</p><a name="AEN6107" id= ! "AEN6107"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/show-status" target= *************** *** 301,306 **** </li> <li> ! <p>Show the source code version numbers:</p><a name="AEN6080" id= ! "AEN6080"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/show-version" target= --- 301,306 ---- </li> <li> ! <p>Show the source code version numbers:</p><a name="AEN6112" id= ! "AEN6112"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/show-version" target= *************** *** 309,314 **** </li> <li> ! <p>Show the browser's request headers:</p><a name="AEN6085" id= ! "AEN6085"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/show-request" target= --- 309,314 ---- </li> <li> ! <p>Show the browser's request headers:</p><a name="AEN6117" id= ! "AEN6117"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/show-request" target= *************** *** 317,322 **** </li> <li> ! <p>Show which actions apply to a URL and why:</p><a name="AEN6090" ! id="AEN6090"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/show-url-info" target= --- 317,322 ---- </li> <li> ! <p>Show which actions apply to a URL and why:</p><a name="AEN6122" ! id="AEN6122"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/show-url-info" target= *************** *** 330,344 **** "QUOTE">"Privoxy"</span> continues to run, but only as a pass-through proxy, with no actions taking place:</p><a name= ! "AEN6098" id="AEN6098"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/toggle" target= "_top">http://config.privoxy.org/toggle</a></p> </blockquote> ! <p>Short cuts. Turn off, then on:</p><a name="AEN6102" id= ! "AEN6102"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/toggle?set=disable" target= "_top">http://config.privoxy.org/toggle?set=disable</a></p> ! </blockquote><a name="AEN6105" id="AEN6105"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/toggle?set=enable" target= --- 330,344 ---- "QUOTE">"Privoxy"</span> continues to run, but only as a pass-through proxy, with no actions taking place:</p><a name= ! "AEN6130" id="AEN6130"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/toggle" target= "_top">http://config.privoxy.org/toggle</a></p> </blockquote> ! <p>Short cuts. Turn off, then on:</p><a name="AEN6134" id= ! "AEN6134"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/toggle?set=disable" target= "_top">http://config.privoxy.org/toggle?set=disable</a></p> ! </blockquote><a name="AEN6137" id="AEN6137"></a> <blockquote class="BLOCKQUOTE"> <p><a href="http://config.privoxy.org/toggle?set=enable" target= |
From: Fabian K. <fab...@us...> - 2017-06-26 12:16:34
|
Update of /cvsroot/ijbswa/current/doc/source In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22021/doc/source Modified Files: p-config.sgml Log Message: Document the enable-accept-filter directive Sponsored by: Robert Klemme Index: p-config.sgml =================================================================== RCS file: /cvsroot/ijbswa/current/doc/source/p-config.sgml,v retrieving revision 2.127 retrieving revision 2.128 diff -C2 -d -r2.127 -r2.128 *** p-config.sgml 26 Jun 2017 12:14:38 -0000 2.127 --- p-config.sgml 26 Jun 2017 12:16:32 -0000 2.128 *************** *** 3256,3259 **** --- 3256,3330 ---- + <sect3 renderas="sect4" id="enable-accept-filter"><title>enable-accept-filter</title> + <variablelist> + <varlistentry> + <term>Specifies:</term> + <listitem> + <para> + Whether or not Privoxy should use an accept filter + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>Type of value:</term> + <listitem> + <para> + <replaceable>0 or 1</replaceable> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>Default value:</term> + <listitem> + <para>0</para> + </listitem> + </varlistentry> + <varlistentry> + <term>Effect if unset:</term> + <listitem> + <para> + No accept filter is enabled. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>Notes:</term> + <listitem> + <para> + Accept filters reduce the number of context switches by not + passing sockets for new connections to Privoxy until a complete + HTTP request is available. + </para> + <para> + As a result, Privoxy can process the whole request right away + without having to wait for additional data first. + </para> + <para> + For this option to work, Privoxy has to be compiled with + FEATURE_ACCEPT_FILTER and the operating system has to support + it (which may require loading a kernel module). + </para> + <para> + Currently accept filters are only supported on FreeBSD-based + systems. Check the + <ulink url="https://www.freebsd.org/cgi/man.cgi?query=accf_http">accf_http(9) + man page</ulink> + to learn how to enable the support in the operating system. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>Examples:</term> + <listitem> + <para> + enable-accept-filter 1 + </para> + </listitem> + </varlistentry> + </variablelist> + <![%config-file;[<literallayout>@@#enable-accept-filter 1</literallayout>]]> + </sect3> + + <sect3 renderas="sect4" id="handle-as-empty-doc-returns-ok"><title>handle-as-empty-doc-returns-ok</title> <variablelist> |