On 01/12/10 08:39, Rémy Sanchez wrote:
> Hi,
>
> I run Squid on a dorm network, to decrease content loading time with
> cache. Currently, we're upgrading Squid to 3.1, because we are moving to
> IPv6. But, since our bandwidth is quite limited, we have great interest
> in caching videos from Youtube/Dailomtion/Youporn/pick one. However,
> this requires to use storeurl, which has not been ported to Squid 3.1,
> and there is no trace of it in 3.2 either.
>
> I see in the release notes that "If you need something to do then
> porting one of these from Squid-2 to Squid-3 is most welcome.", so here
> I am :)
>
> To introduce myself a little bit further, I'm a (student) network
> engineer, and I have been hacking around for a few years. I've already
> run small/mid-sized projects on my own, like Karibou [1], but never
> really contributed code to something as big as Squid (there's a first
> time to everything :)). My programming experience is mostly with
> scripting languages (Python, PHP) or GUI development with C++/Qt, thus I
> did never "really" code in C : most of the things I've done are typical
> school projects, and reading source code to help me understanding the
> documentation.
>
> So, for now I'll read a bit about squid internals and coding guidelines
> waiting for any question/comment. Have a good day/evening/night/whatever :)
>
Greetings Rémy,
Thank you for volunteering.
I'm happy to mentor you through the code for this if you need any
assistance. Here are a few links to help you with your code explorations.
What documentation we have for 3.x can be found at:
http://squid.treenet.co.nz/Doc/Code/
We have a portage page to track the patches in 2.x. It's not very up to
date right now.
http://master.squid-cache.org/Versions/v2/2.7/changesets/port.html
The main storage URL patches begin with patch #11738 (search for
"support rewriting the URL used for store"). There are quite a few of
the bug fix patches following it. Plus one more recent bug fix at:
http://www.squid-cache.org/Versions/v2/HEAD/changesets/12695.patch
Initial major task is porting the patch so that it will build and run in
Squid-3. Style changes to make it fit fully with 3.x need to be done
separately after the port work is complete. Doing them early makes the
extra bug fix ports harder.
I hope this helps, and am looking forward to the results.
Amos
-- Please be using Current Stable Squid 2.7.STABLE9 or 3.1.9 Beta testers wanted for 3.2.0.3Received on Thu Dec 02 2010 - 06:39:04 MST
This archive was generated by hypermail 2.2.0 : Sun Dec 05 2010 - 12:00:04 MST