zerodeckvc / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

Async support #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Add the ability of httplib2 to operate async on sockets.

Original issue reported on code.google.com by joe.gregorio@gmail.com on 31 Jul 2007 at 1:15

GoogleCodeExporter commented 9 years ago
That would be marvellous!

Could I ask that you consider using pyevent as well as asyncore?  pyevent isn't
standard, but it's really really fast.

Original comment by sfl...@gmail.com on 17 Oct 2007 at 7:47

GoogleCodeExporter commented 9 years ago
FWIW I'm playing with making httplib2 threadsafe. I've got a simple thread based
async wrapper around it but I think I need some appropriate locking in httplib2.
Would you take some non-intrusive patches to add optional locking of things 
like the
cache, the connection pool an the auth store?

Original comment by i...@mckellar.org on 8 Nov 2007 at 5:42

GoogleCodeExporter commented 9 years ago
Yes, I'd love those patches. Thanks.

Original comment by joe.gregorio@gmail.com on 19 Nov 2007 at 6:14

GoogleCodeExporter commented 9 years ago
Were the patches for this ever released?  I'm currently using Qt's QHttp object 
to
get async support but would love to use httplib2 for async calls when/if it's 
ready.

Original comment by mfwil...@gmail.com on 19 Mar 2008 at 9:10

GoogleCodeExporter commented 9 years ago
What about just a timeout, even if its blocking? 

Or is that covered elsewhere?

Original comment by samuelro...@gmail.com on 13 Nov 2009 at 8:44

GoogleCodeExporter commented 9 years ago
As far as simple multi-threaded downloading, are there any known obstacles 
other than 
the thread-safety of the cache?  Fixing the cache should be as simple as 
writing to a 
temp file and then doing an atomic rename to the real filename.  There are also 
a couple 
race conditions using os.path.exists(), but those are very simple to fix as 
well (just go 
ahead and do the operation, then catch an exception to see if it failed because 
the file 
did/didn't exist).

Original comment by mackst...@gmail.com on 16 Dec 2009 at 4:26

GoogleCodeExporter commented 9 years ago
Oh right, the connection and auth dicts.  I skimmed past that somehow.  Okay.

Anything else?

Original comment by mackst...@gmail.com on 16 Dec 2009 at 4:28

GoogleCodeExporter commented 9 years ago
Issue 25 has been merged into this issue.

Original comment by joe.gregorio@gmail.com on 26 Dec 2009 at 5:09

GoogleCodeExporter commented 9 years ago
Issue 44 has been merged into this issue.

Original comment by joe.gregorio@gmail.com on 26 Dec 2009 at 5:09

GoogleCodeExporter commented 9 years ago
I'd love to see this as well, are there other libs that already have this?

Original comment by anthony....@gmail.com on 18 Mar 2010 at 7:12

GoogleCodeExporter commented 9 years ago
Tornado and eventlet both have asynchronous http clients.  I'm using Tornado 
and it's 
working pretty well, though it has no caching.

Original comment by mackst...@gmail.com on 18 Mar 2010 at 7:15

GoogleCodeExporter commented 9 years ago
eventlet can monkey-patch socket, so you can issue many httplib2 requests 
asynchronously. Just be sure to create another Http() object for each 
[green]thread.

Original comment by temotor on 23 Sep 2010 at 1:44

GoogleCodeExporter commented 9 years ago
Issue 71 has been merged into this issue.

Original comment by joe.gregorio@gmail.com on 11 Feb 2011 at 6:15

GoogleCodeExporter commented 9 years ago
Issue 88 has been merged into this issue.

Original comment by joe.gregorio@gmail.com on 15 Feb 2011 at 4:32

GoogleCodeExporter commented 9 years ago
Issue 132 has been merged into this issue.

Original comment by joe.gregorio@gmail.com on 21 Feb 2011 at 11:33