<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Nov 11, 2014 at 3:55 AM, Jed Brown <span dir="ltr"><<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">KAUST (or KSA?) internet can be flaky at times and my "make" was<br>
(silently) hanging indefinitely while trying to connect to <a href="http://mcs.anl.gov" target="_blank">mcs.anl.gov</a>.<br>
Manually touching .nagged allows my build to proceed.  The hang could be<br>
fixed by adding a reasonable timeout, but I can't find a timeout in<br>
urllib.  Aron suggests that I try curl because all built-in Python url<br>
libraries are terrible, but I don't think we can depend on curl being<br>
installed, so we'd have to fall back to something.  We could implement a<br>
timeout using threads, if threads weren't broken on some architectures.<br>
<br>
Meanwhile, the professor next to me runs Little Snitch on his Mac and<br>
wants to know why PETSc's build is trying to connect to Argonne's<br>
servers.  His first thought was that it was a there for surveillance.<br></blockquote><div><br></div><div>I find it hard to believe he is a science professor with that kind of inference</div><div>from the data (you can see it retrieves a webpage). Maybe climate ;)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
PETSc has a significant number of users that work behind firewalls or<br>
are otherwise sensitive to outgoing connections.  Although nagupgrade<br>
helps people stay updated and reduces some support email, I think it is<br>
unprofessional and a failure mode that I'd rather avoid.<br>
</blockquote></div><br>urllib2 has the timeout argument, so we should switch. I am not sure I see</div><div class="gmail_extra">retrieving a webpage as unprofessional. Is there a better way to update</div><div class="gmail_extra">information, or do we want a model that is completely dead once downloaded?</div><div class="gmail_extra">I think people now assume that this is not true.</div><div class="gmail_extra"><br></div><div class="gmail_extra">  Matt<br clear="all"><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>