-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run a simple tornado server #1014
Comments
This is quite likely related to #996. If you take a strace And, thanks for trying out WSL! |
strace attached. Thank you for taking time looking into this. |
temperory solution: change : tornado\netutil.py to def bind_sockets(port, address=None, family=socket.AF_INET, |
I am no longer hitting this issue on 1803. Please reopen if you continue to have issues. |
In bash shell, install python-pip:
sudo apt-get install python-pip
Install tornado:
sudo pip install tornado
Create a tornado server, server.py with the following content:
Run the server:
sudo python server.py
The server starts and waiting for connection
Traceback (most recent call last):
File "server.py", line 15, in
application.listen(8888)
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1850, in listen
server.listen(port, address)
File "/usr/local/lib/python2.7/dist-packages/tornado/tcpserver.py", line 126, in listen
sockets = bind_sockets(port, address=address)
File "/usr/local/lib/python2.7/dist-packages/tornado/netutil.py", line 194, in bind_sockets
sock.bind(sockaddr)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use
(Note that socket 8888 is not used)
The text was updated successfully, but these errors were encountered: