Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Printing out the actual port bound to when using dynamic port allocation would be nice. #76
Currently with an app using 'app.run()', if you pass 0.0.0.0:0 in as the address to run on, it will successfully run, but incorrectly print that it is listening on port 0.
What needs to happen is a call to sock.getsockname() to get the port bind() allocated, and then print that, rather than the port that was supplied.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Oh, I should mention: I'm using the web.py in lucid, (0.33 I think).
And I've used this code to workaround this limitation today: