twisted much?

Chris McCormick chris at mccormick.cx
Wed Jun 15 03:44:05 BST 2005


On Wed, Jun 15, 2005 at 12:53:21PM +1000, Robert Collins wrote:
> On Wed, 2005-06-08 at 13:32 +1000, Martin Pool wrote:
> > (Maybe some of the Canonical people have an opinion on this.)
> > 
> > To get really good HTTP download performance it seems that we need to
> > do parallel/overlapped downloads.
> ...
> > Another way is to do hand-carved select() or thread based clients.
> > While I would normally hesitate to introduce threads into a program
> > that doesn't strongly need them I think it might be OK here, if
> > they're contained behind an API firewall.
> 
> Please don't hand carve an http client. You'll be lucky to get 0.9
> conformance with any reasonable amount of work, and if you want
> something that works correctly with 1.1, well, I'll see you next year.
> 
> Also note that http/1.1 prohibits more than 2 concurrent connections to
> a single hostname:port combination, and that is only allowed so that you
> can use one connection for interactive (small) requests and one to
> pipeline the bulk of the data through.

Please excuse my ignorance, but what's wrong with using Python's
BaseHTTPServer in threaded mode for this?

Best,

Chris.
-------------------
chris at mccormick.cx
http://mccormick.cx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050615/d59cc87d/attachment.pgp 


More information about the bazaar mailing list