On May 27, 2013, at 2:21 PM, Ralf Schmitt <r...@systemexit.de> wrote:

> Noah Kantrowitz <n...@coderanger.net> writes:
> 
>> </farnsworth>
>> 
>> but seriously, at long last today it was my honor to throw the DNS
>> switch to move PyPI to the Fastly caching CDN. I would like to thank
>> Donald Stufft for doing much of the heavy lifting on the PyPI side,
>> and to Fastly for graciously offering to host us. What does this mean
>> for everyone? Well the biggest change is PyPI should get a whole lot
>> faster. There are two major downsides however. There will now be a
>> delay of several minutes in some cases between updating a package and
>> having it be installable, and download counts will now be even more
>> incorrect than they were before. The PyPI admins are discussing what
>> to do about download counts long-term, but for now we all feel that
>> the performance and availability benefits outweigh the loss. If anyone
>> has any questions, or hears anything about issues with PyPI please
>> don't hesitate to contact me.
>> 
>> --Noah
> 
> 
> the xmlrpc api is broken when using http 1.0. the second call to curl
> uses http/1.0 and returns an empty response:
> 
> $ cat >body.txt <<EOF
> <?xml version='1.0'?>
> <methodCall>
> <methodName>package_releases</methodName>
> <params>
> <param>
> <value><string>e</string></value>
> </param>
> </params>
> </methodCall>
> EOF
> $ curl -X POST -d @body.txt http://pypi.python.org/pypi --header 
> "Content-Type:text/xml"
> <?xml version='1.0'?>
> <methodResponse>
> <params>
> <param>
> <value><array><data>
> <value><string>1.4.5</string></value>
> </data></array></value>
> </param>
> </params>
> </methodResponse>
> $ curl -0 -X POST -d @body.txt http://pypi.python.org/pypi --header 
> "Content-Type:text/xml"
> $ 

We have not supported HTTP 1.0 for quite some time. Even before the CDN move, 
we used the Host header to route between different HAProxy server blocks on the 
load balancers. I'm unaware of any reason people would be using HTTP 1.0 
clients at this point, HTTP 1.1 has been a standard for 14 years now.

--Noah


Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to