[BUG] error in HTTPTestUtil.py
Andrew Bennetts
andrew at canonical.com
Wed Oct 26 04:07:34 BST 2005
On Tue, Oct 25, 2005 at 03:27:13PM -0500, John A Meinel wrote:
> Alexander Belchenko wrote:
> > This traceback is printed 3 times on the screen, not in the log. Running
> > latest bzr.dev selftest on Windows 2000 with firewall (is it
> > important?). But when firewall was stopped this error also appears.
>
> This isn't a firewall thing specifically. I've started getting this in
> other applications under windows, as of the last couple of months.
>
> Specifically, it seems that even though we specifically opened the
> socket in blocking mode (we want to wait for user input), it warns us
> that the read request would block.
Is socket.setdefauttimeout or socket_obj.settimeout used anywhere?
Python's socket timeout feature is a leaky abstraction. It's implemented
by making the socket non-blocking, but this implementation detail can fairly
easily leak out when used with e.g. makefile.
-Andrew.
More information about the bazaar
mailing list