StandAlone Server crashes at the end
I use the internal webserser to provide my wiki. I got a traceback after pressing Crtl + C to stop the wiki.
The interface variable is empty in my configuration and so the DIE request will send to an invalid address like :8000 instead of myhost:8000 or localhost:8000. Maybe this is the reason of the crash.
Part of my configuration:
# Interface (default 'localhost') # The default will listen only to localhost. # '' will listen to any interface interface = ''
Details
Thanks for using MoinMoin! Traceback (most recent call last): File "./moin.py", line 97, in ? run(Config) File "/usr/lib/python2.3/site-packages/MoinMoin/server/standalone.py", line 513, in run httpd.serve_forever() File "/usr/lib/python2.3/site-packages/MoinMoin/server/standalone.py", line 181, in serve_forever SimpleServer.serve_forever(self) File "/usr/lib/python2.3/site-packages/MoinMoin/server/standalone.py", line 72, in serve_forever self.handle_request() File "/usr/lib/python2.3/SocketServer.py", line 217, in handle_request request, client_address = self.get_request() File "/usr/lib/python2.3/SocketServer.py", line 373, in get_request return self.socket.accept() File "/usr/lib/python2.3/socket.py", line 167, in accept sock, addr = self._sock.accept() File "/usr/lib/python2.3/site-packages/MoinMoin/server/standalone.py", line 411, in quit httpd.die() File "/usr/lib/python2.3/site-packages/MoinMoin/server/standalone.py", line 245, in die SimpleServer.die(self) File "/usr/lib/python2.3/site-packages/MoinMoin/server/standalone.py", line 84, in die req = httplib.HTTP('%s:%d' % self.server_address) File "/usr/lib/python2.3/httplib.py", line 1012, in __init__ self._setup(self._connection_class(host, port, strict)) File "/usr/lib/python2.3/httplib.py", line 507, in __init__ self._set_hostport(host, port) File "/usr/lib/python2.3/httplib.py", line 523, in _set_hostport if host[0] == '[' and host[-1] == ']': IndexError: string index out of range
Workaround
Store the name of the interface in the interface variable. But this binds MoinMoin to a specific port instead of all ports.
Discussion
Plan
- Priority:
- Assigned to:
- Status: Fixed in 23ac69c53779, 1.6 branch.