[Simple-cdd-devel] Bug#861198: Shutting down public FTP services

Vagrant Cascadian vagrant at debian.org
Fri Apr 28 17:17:55 UTC 2017


On 2017-04-28, Enrico Zini wrote:
> On Thu, Apr 27, 2017 at 08:26:13AM -0700, Vagrant Cascadian wrote:
>> Below is a crude implementation using python3-urllib3. Maybe it's good
>> enough.
>
> I would be tempted to rebase the download code on
> urllib.request.urlretrieve, because it avoids an external dependency and
> it does it all in one shot:
> https://docs.python.org/3/library/urllib.request.html#urllib.request.urlretrieve

One thing just occurred to me, does urllib.request.urlretrieve open a
new server connection for every download? I saw a significant speed
improvement using urllib3 once I figured out how to get it to re-use an
already established connection (or rather, how to use it correctly, it
does that by default).

I've also just noticed that "wget -O" isn't compatible with
timestamping, so continuing to use wget isn't really an option... unless
we use the checksums method for that too.


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/simple-cdd-devel/attachments/20170428/ca2107e2/attachment.sig>


More information about the Simple-cdd-devel mailing list