[IPython-dev] Weird, serious notebook bug on Windows

MinRK benjaminrk at gmail.com
Wed Jun 27 19:20:35 EDT 2012

I can reproduce this, actually with basic tornado hello world example -
listening on an in-use port does not raise on Windows.

This is because tornado sets:

sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1),

which on Windows prevents binding from raising an error. The second socket
will happily wait in line for the previous socket to let go of the port.

I see this as "not our problem," and if Windows users want to run multiple
notebooks, they have to set ports manually, which is easy.  This should be
clearly documented, though, as it is rather surprising.

I will bring it up as a tornado Issue.


On Wed, Jun 27, 2012 at 4:14 PM, Fernando Perez <fperez.net at gmail.com>wrote:

> On Wed, Jun 27, 2012 at 4:05 PM, Brian Granger <ellisonbg at gmail.com>
> wrote:
> > I have seen weird things in git bash wrt IPython.  Can you have them
> > retry in the regular command prompt?
> OK, good to know.  I just asked him to do that, I'll report.
> f
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120627/d4c39dc1/attachment.html>

More information about the IPython-dev mailing list