--------------------- PatchSet 1335 Date: 2001/01/17 21:58:04 Author: rbcollins Branch: rbcollins_filters Tag: (none) Log: starting client_side Members: src/client_side.c:1.1.1.3.4.1.4.15->1.1.1.3.4.1.4.15.2.1 src/structs.h:1.1.1.3.4.1.4.12.2.2->1.1.1.3.4.1.4.12.2.3 Index: squid/src/client_side.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/client_side.c,v retrieving revision 1.1.1.3.4.1.4.15 retrieving revision 1.1.1.3.4.1.4.15.2.1 diff -u -r1.1.1.3.4.1.4.15 -r1.1.1.3.4.1.4.15.2.1 --- squid/src/client_side.c 13 Jan 2001 08:31:13 -0000 1.1.1.3.4.1.4.15 +++ squid/src/client_side.c 17 Jan 2001 21:58:04 -0000 1.1.1.3.4.1.4.15.2.1 @@ -1,6 +1,6 @@ /* - * $Id: client_side.c,v 1.1.1.3.4.1.4.15 2001/01/13 08:31:13 rbcollins Exp $ + * $Id: client_side.c,v 1.1.1.3.4.1.4.15.2.1 2001/01/17 21:58:04 rbcollins Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -1820,6 +1820,8 @@ } +DATAFILTER clientDoCommWrite; + /* * accepts chunk of a http message in buf, parses prefix, filters headers and * such, writes processed message to the client's socket @@ -1922,6 +1924,7 @@ * so end clients that don't support TE aren't performance affected * For now, because I'm lazy, I'm just disabling this */ +#if hardtodowithfilters_butfilterswhenshortcuttingshouldbethesame } else if (!http->request->range && !(http->request->flags.te_encoding)) { /* Avoid copying to MemBuf for non-range requests */ /* Note, if we're here, then 'rep' is known to be NULL */ @@ -1931,6 +1934,7 @@ /* NULL because clientWriteBodyComplete frees it */ return; } +#endif if (http->request->method == METHOD_HEAD) { if (rep) { /* do not forward body for HEAD replies */ Index: squid/src/structs.h =================================================================== RCS file: /cvsroot/squid-sf//squid/src/structs.h,v retrieving revision 1.1.1.3.4.1.4.12.2.2 retrieving revision 1.1.1.3.4.1.4.12.2.3 diff -u -r1.1.1.3.4.1.4.12.2.2 -r1.1.1.3.4.1.4.12.2.3 --- squid/src/structs.h 17 Jan 2001 01:52:25 -0000 1.1.1.3.4.1.4.12.2.2 +++ squid/src/structs.h 17 Jan 2001 21:58:05 -0000 1.1.1.3.4.1.4.12.2.3 @@ -1,6 +1,6 @@ /* - * $Id: structs.h,v 1.1.1.3.4.1.4.12.2.2 2001/01/17 01:52:25 rbcollins Exp $ + * $Id: structs.h,v 1.1.1.3.4.1.4.12.2.3 2001/01/17 21:58:05 rbcollins Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -1037,6 +1037,8 @@ /* what will we be encoding with ? */ TE_list *te_translations; int oldte_rv; + /* data filtering list */ + dlink_list filters; }; struct _ConnStateData {