flaxsearch / flaxcode

Automatically exported from code.google.com/p/flaxcode
4 stars 1 forks source link

Shutting down immediately after startup fails #155

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If I start flax from the command line (on Linux) and immediately press
CTRL-C to stop it, it fails to stop, and displays the following on stdout
(this looks like a problem in cherrypy - if I wait for a second or so for
cherrypy to start up, shutting down works cleanly):

Exception in thread Thread-16:
Traceback (most recent call last):
  File "threading.py", line 460, in __bootstrap
    self.run()
  File "threading.py", line 440, in run
    self.__target(*self.__args, **self.__kwargs)
  File "startflax.py", line 170, in _do_stop
    self.index_server.stop()
  File
"/home/richard/private/Working/flax/trunk/src/indexserver/indexer.py", line
344, in stop
    self.kill_indexer.value = 1
  File
"/home/richard/private/Working/flax/trunk/localinst/processing/managers.py", 
line
1019, in set
    return self._callmethod('set', (value,))
  File
"/home/richard/private/Working/flax/trunk/localinst/processing/managers.py", 
line
728, in _callmethod
    return dispatch(self._connection, self._id, methodname, args, kwds)
  File
"/home/richard/private/Working/flax/trunk/localinst/processing/managers.py", 
line
83, in dispatch
    kind, result = c.recv()
OSError: [Errno 104] Connection reset by peer

Traceback (most recent call last):
  File "startflax.py", line 274, in <module>
    main()
  File "startflax.py", line 267, in main
    main.start(blocking=True)
  File "startflax.py", line 188, in start
    self._do_start(blocking)
  File "startflax.py", line 156, in _do_start
    blocking)
  File "/home/richard/private/Working/flax/trunk/src/cpserver.py", line
444, in start_web_server
    cherrypy.server.quickstart()
  File
"/home/richard/private/Working/flax/trunk/localinst/cherrypy/_cpserver.py",
line 69, in quickstart
    self.start()
  File
"/home/richard/private/Working/flax/trunk/localinst/cherrypy/_cpserver.py",
line 95, in start
    self._start_http(httpserver)
  File
"/home/richard/private/Working/flax/trunk/localinst/cherrypy/_cpserver.py",
line 116, in _start_http
    self.wait(httpserver)
  File
"/home/richard/private/Working/flax/trunk/localinst/cherrypy/_cpserver.py",
line 151, in wait
    time.sleep(.1)
KeyboardInterrupt

Original issue reported on code.google.com by boulton.rj@gmail.com on 5 Dec 2007 at 10:57

GoogleCodeExporter commented 9 years ago

Original comment by charliej...@gmail.com on 27 Aug 2009 at 1:19