summaryrefslogtreecommitdiff
path: root/tests/admin_scripts/urls.py
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2013-09-22 15:55:09 +0200
committerFlorian Apolloner <florian@apolloner.eu>2013-09-22 22:04:50 +0200
commit56201fe5a85ead96f00d8ad2eda5cfd2bc4cb4b0 (patch)
tree3a29f249ae60f1d57180e6418f20d1cd53dd480f /tests/admin_scripts/urls.py
parentb2876c0c914be0f12b57c7e6e4f6fae671108096 (diff)
[1.6.x] Fixed "Address already in use" from liveserver.
Our WSGIServer rewrapped the socket errors from server_bind into WSGIServerExceptions, which is used later on to provide nicer error messages in runserver and used by the liveserver to see if the port is already in use. But wrapping server_bind isn't enough since it only binds to the socket, socket.listen (which is called from server_activate) could also raise "Address already in use". Instead of overriding server_activate too I chose to just catch socket errors, which seems to make more sense anyways and should be more robust against changes in wsgiref. Backport of 2ca00faa913754cd5860f6e1f23c8da2529c691a from master.
Diffstat (limited to 'tests/admin_scripts/urls.py')
0 files changed, 0 insertions, 0 deletions