That's exactly the problem that this patch try to solve though - the ability to finally add mirrors & proxies. I wanted to work on a mirror solution before but grimaced at the prospect of having to hack this for each separate plt instance, so this is a catch-22 situation. <br>
<br>Cheers,<br>yc<br><br><div class="gmail_quote">On Wed, Oct 28, 2009 at 11:46 AM, Jay McCarthy <span dir="ltr"><<a href="mailto:jay.mccarthy@gmail.com">jay.mccarthy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The main problem with this, IMHO, is that there are no alternative<br>
implementations of that servlet or mirrors, so I don't see the point<br>
in allowing the configuration.<br>
<br>
Jay<br>
<div><div></div><div class="h5"><br>
On Wed, Oct 28, 2009 at 12:40 PM, YC <<a href="mailto:yinso.chen@gmail.com">yinso.chen@gmail.com</a>> wrote:<br>
> Hi all -<br>
><br>
> I wasn't sure if the patch below was accepted so send it through the plt-dev<br>
> thread. Please let me know if there are anything to add for it to be<br>
> accepted.<br>
><br>
> Thanks,<br>
> yc<br>
><br>
> ---------- Forwarded message ----------<br>
> From: YC <<a href="mailto:yinso.chen@gmail.com">yinso.chen@gmail.com</a>><br>
> Date: Tue, Oct 13, 2009 at 1:14 PM<br>
> Subject: Re: [plt-scheme] Download links in PLaneT<br>
> To: Carl Eastlund <<a href="mailto:carl.eastlund@gmail.com">carl.eastlund@gmail.com</a>>, Jay McCarthy<br>
> <<a href="mailto:jay.mccarthy@gmail.com">jay.mccarthy@gmail.com</a>><br>
> Cc: PLT-Scheme Mailing List <<a href="mailto:plt-scheme@list.cs.brown.edu">plt-scheme@list.cs.brown.edu</a>>, Stephen Bloch<br>
> <<a href="mailto:sbloch@adelphi.edu">sbloch@adelphi.edu</a>><br>
><br>
><br>
><br>
> On Tue, Oct 13, 2009 at 9:15 AM, Carl Eastlund <<a href="mailto:carl.eastlund@gmail.com">carl.eastlund@gmail.com</a>><br>
> wrote:<br>
>><br>
>> It should be for setting up a student lab, if not for the phone situation.<br>
>><br>
><br>
> A similar issue is the recent planet outage -<br>
> <a href="http://groups.google.com/group/plt-scheme/browse_thread/thread/bd9108a0081f973a?pli=1" target="_blank">http://groups.google.com/group/plt-scheme/browse_thread/thread/bd9108a0081f973a?pli=1</a><br>
> - it's desirable not to have to depend solely on the central planet server.<br>
><br>
> Having a proxy pulling from the central planet server (either real-time or<br>
> batch) would solve the problem for both cases. And to use such server we'll<br>
> need to configure the url that planet will point to.<br>
><br>
> It seems that the value of the planet server is hardcoded in<br>
> COLLECTS/planet/config.ss, and it would be a pain to modify the value for<br>
> each installed PLT instance. It's better if the value is read from a<br>
> environment variable or a file (one which the planet command line tool can<br>
> also read and modify). Once this is made configurable, a planet proxy can<br>
> be built and used.<br>
><br>
> For now - how about use an environment variable called PLTPLANETURL (or<br>
> another more preferable name)? If so below is a potential patch.<br>
><br>
> --- plt-4.2.1/collects/planet/config.ss 2009-07-16 05:28:08.000000000<br>
> -0700<br>
> +++ plt-scheme/planet/config.ss 2009-10-13 13:09:09.000000000 -0700<br>
> @@ -19,6 +19,7 @@<br>
> (DEFAULT-PACKAGE-LANGUAGE (version))<br>
><br>
> (USE-HTTP-DOWNLOADS? #t)<br>
> - (HTTP-DOWNLOAD-SERVLET-URL<br>
> "<a href="http://planet.plt-scheme.org/servlets/planet-servlet.ss" target="_blank">http://planet.plt-scheme.org/servlets/planet-servlet.ss</a>")<br>
> + (HTTP-DOWNLOAD-SERVLET-URL (let ((url (getenv "PLTPLANETURL")))<br>
> + (if (not url)<br>
> "<a href="http://planet.plt-scheme.org/servlets/planet-servlet.ss" target="_blank">http://planet.plt-scheme.org/servlets/planet-servlet.ss</a>" url)))<br>
> (PLANET-ARCHIVE-FILTER #f)))<br>
><br>
><br>
><br>
</div></div><div class="im">> _________________________________________________<br>
> For list-related administrative tasks:<br>
</div>> <a href="http://list.cs.brown.edu/mailman/listinfo/plt-dev" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-dev</a><br>
<div><div></div><div class="h5">><br>
><br>
<br>
<br>
<br>
--<br>
Jay McCarthy <<a href="mailto:jay@cs.byu.edu">jay@cs.byu.edu</a>><br>
Assistant Professor / Brigham Young University<br>
<a href="http://teammccarthy.org/jay" target="_blank">http://teammccarthy.org/jay</a><br>
<br>
"The glory of God is Intelligence" - D&C 93<br>
</div></div></blockquote></div><br>