[Python-Dev] Non-blocking sockets, asynchronous connects and select.select.

Josiah Carlson jcarlson at uci.edu
Tue Mar 20 02:02:58 CET 2007


"Alan Kennedy" <python-dev at alan.kennedy.name> wrote:
> I'm working on a select implementation for jython (in combination with
> non-blocking sockets), and a set of unit tests for same.

Great!

[snip]
> But when I run the code on cpython, the code reports that both calls
> would block, i.e. that neither side of the socket will progress with
> the connection.
[snip]
> SERVER_ADDRESS = ("", 54321)

Replacing the above with:

    SERVER_ADDRESS = ("localhost", 54321)

...makes it work for me on Windows CPython 2.3.5 and 2.5 .

 - Josiah



More information about the Python-Dev mailing list