[openstack-dev] Issues with Python Requests

Donald Stufft donald at stufft.io
Fri Apr 4 14:44:22 UTC 2014


On Apr 4, 2014, at 10:41 AM, Chuck Thier <cthier at gmail.com> wrote:

> Howdy,
> 
> Now that swift has aligned with the other projects to use requests in python-swiftclient, we have lost a couple of features.
> 
> 1.  Requests doesn't support expect: 100-continue.  This is very useful for services like swift or glance where you want to make sure a request can continue before you start uploading GBs of data (for example find out that you need to auth).
> 
> 2.  Requests doesn't play nicely with eventlet or other async frameworks [1].  I noticed this when suddenly swift-bench (which uses swiftclient) wasn't performing as well as before.  This also means that, for example, if you are using keystone with swift, the auth requests to keystone will block the proxy server until they complete, which is also not desirable.

requests should work fine if you used the event let monkey patch the socket module prior to import requests.

> 
> Does anyone know if these issues are being addressed, or begun working on them?
> 
> Thanks,
> 
> --
> Chuck
> 
> [1] http://docs.python-requests.org/en/latest/user/advanced/#blocking-or-non-blocking
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140404/d4acebcb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140404/d4acebcb/attachment.pgp>


More information about the OpenStack-dev mailing list