Re: [openstack-dev] Issues with Python Requests

2014-04-04 Thread Joshua Harlow
uot;OpenStack Development Mailing List (not for usage questions)" mailto:openstack-dev@lists.openstack.org>> Date: Friday, April 4, 2014 at 11:50 AM To: OpenStack Development Mailing List mailto:openstack-dev@lists.openstack.org>> Subject: Re: [openstack-dev] Issues with Python Reque

Re: [openstack-dev] Issues with Python Requests

2014-04-04 Thread Chuck Thier
I think I have worked out the performance issues with eventlet and Requests with most of it being that swiftclient needs to make use of requests.session to re-use connections, and there are likely other areas there that we can make improvements. Now on to expect: 100-continue support, has anyone e

Re: [openstack-dev] Issues with Python Requests

2014-04-04 Thread Chuck Thier
On Fri, Apr 4, 2014 at 11:18 AM, Donald Stufft wrote: > > On Apr 4, 2014, at 10:56 AM, Chuck Thier wrote: > > On Fri, Apr 4, 2014 at 9:44 AM, Donald Stufft wrote: > >> requests should work fine if you used the event let monkey patch the >> socket module prior to import requests. >> > > That's w

Re: [openstack-dev] Issues with Python Requests

2014-04-04 Thread Donald Stufft
On Apr 4, 2014, at 10:56 AM, Chuck Thier wrote: > On Fri, Apr 4, 2014 at 9:44 AM, Donald Stufft wrote: > requests should work fine if you used the event let monkey patch the socket > module prior to import requests. > > That's what I had hoped as well (and is what swift-bench did already), bu

Re: [openstack-dev] Issues with Python Requests

2014-04-04 Thread Chuck Thier
On Fri, Apr 4, 2014 at 9:44 AM, Donald Stufft wrote: > requests should work fine if you used the event let monkey patch the > socket module prior to import requests. > That's what I had hoped as well (and is what swift-bench did already), but it performs the same if I monkey patch or not. -- Ch

Re: [openstack-dev] Issues with Python Requests

2014-04-04 Thread Donald Stufft
On Apr 4, 2014, at 10:41 AM, Chuck Thier 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

[openstack-dev] Issues with Python Requests

2014-04-04 Thread Chuck Thier
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 y