Re: Squid 3 build problem on RedHat Enterprise Linux 3 update 4

2005-07-15 Thread Andrey Shorin
Hello Andrey,

Friday, July 15, 2005, 1:01:34, Andrey Shorin wrote:

And the patch should be as attached.

 [EMAIL PROTECTED] squid3-anon]$ make
 ...
 if g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include
 -I../include -I../lib/cppunit-1.10.0/include -I
 ../lib/cppunit-1.10.0/include   -Werror -Wall -Wpointer-arith
 -Wwrite-strings -Wcomments  -D_REENTRANT -g -O2 -MT MemPool.o -MD
 -MP -MF .deps/MemPool.Tpo -c -o MemPool.o MemPool.cc; \
 then mv -f .deps/MemPool.Tpo .deps/MemPool.Po; else rm -f 
 .deps/MemPool.Tpo; exit 1; fi
 cc1plus: warnings being treated as errors
 In file included from ../include/Stack.h:37,
  from ../include/splay.h:11,
  from ../include/MemPool.h:9,
  from MemPool.cc:87:
 ../include/Array.h: In member function `VectorE VectorE::operator+=(E)':
 ../include/Array.h:95: warning: no return statement in function returning
non-void
 make[2]: *** [MemPool.o] Error 1
 make[2]: Leaving directory `/home/tolsty/squid/squid3-anon/lib'

 Line 95 is:
 Vector operator += (E item) {push_back(item);};

-- 
Best regards,
 Andrey ShorinIndex: include/Array.h
===
RCS file: /cvsroot/squid/squid3/include/Array.h,v
retrieving revision 1.12
diff -u -3 -r1.12 Array.h
--- include/Array.h 10 Jun 2005 02:13:45 -  1.12
+++ include/Array.h 15 Jul 2005 12:34:17 -
@@ -92,7 +92,7 @@
 void clean();
 void reserve (size_t capacity);
 void push_back (E);
-Vector operator += (E item) {push_back(item);};
+Vector operator += (E item) {push_back(item); return *this;}
 void insert (E);
 E back();
 E pop_back();


Dijjerizer redirector for squid

2005-07-15 Thread daniele

Hi!

I don't know if that is the right place.
Anyway, I wrote a simple redirect_program for Squid to redirect
dijjerizable urls to a dijjer server.
Maybe someone is interested: you can find the description and the code
here:

-   http://dijjer.org/wiki/SquiDJ


Dijjer is a distributed p2p web cache. If you want to insert/get a file
to/from the dijer network, you usually have to start a dijjer instance,
then direct your browser to
http://127.0.0.1:9115/http://www.domain.com/path/to/file
The dijjer server running on localhost will get the file from the
distributed p2p cache.

If you have a LAN with many computers, it is difficult to install dijjer
on every one, and most important, only a tiny part of the traffic will
go to dijjer.

To increment the use of dijjer without having to maintain too copies of
it and without the need to explain users anything, you can set up Squid
so it will automatically redirect part of the traffic to a single dijjer
instance on the same server squid runs.
Then you will have to set the proxy option on client machine, if it
isn't already set.

That makes debug and optimization very easy, increment dijjer use across
your LAN, and maximize the bandwidth use (download speed will be less
influenced by external servers upload bandwidth).



Re: Dijjerizer redirector for squid

2005-07-15 Thread Duane Wessels




On Fri, 15 Jul 2005, daniele wrote:


Hi!

I don't know if that is the right place.
Anyway, I wrote a simple redirect_program for Squid to redirect
dijjerizable urls to a dijjer server.
Maybe someone is interested: you can find the description and the code
here:

-   http://dijjer.org/wiki/SquiDJ


Hi Daniele,

Please visit http://www.squid-cache.org/cgi-bin/related-submit.pl
and fill out the little form for your redirector.  After that it
will appear on the Squid site's pages.

Duane W.