[MERGE] A hack to make urllib not call recv(1) lots and lots.
Andrew Bennetts
andrew at canonical.com
Mon Mar 17 14:34:13 GMT 2008
Vincent Ladeuil wrote:
[...]
>
> I'm not sure you can do that.
>
> There are several layers of buffering involved (depending on
> client http version, server http version and whether or not you're
> using https).
>
> I'm not 100% sure, but I think that when the server is http/1.1
> there may be cases where we want to read the stream one byte at a
> time to avoid issuing a blocking read.
FWIW, it's happening inside readline, when reading the HTTP headers.
-Andrew.
More information about the bazaar
mailing list