parameters: (self)
docstring: Start the SCGI server.
docstring_summary: Start the SCGI server.
docstring_tokens: Start the SCGI server .
function: def start(self):
          """Start the SCGI server."""
          # We have to instantiate the server class here because its __init__
          # starts a threadpool. If we do it too early, daemonize won't work.
          from flup.server.scgi import WSGIServer
          self.scgiserver = WSGIServer(*self.args, **self.kwargs)
          # TODO: report this bug upstream to flup.
          # If we don't set _oldSIGs on Windows, we get:
          #   File "C:\Python24\Lib\site-packages\flup\server\threadedserver.py",
          #   line 108, in run
          #     self._restoreSignalHandlers()
          #   File "C:\Python24\Lib\site-packages\flup\server\threadedserver.py",
          #   line 156, in _restoreSignalHandlers
          #     for signum,handler in self._oldSIGs:
          #   AttributeError: 'WSGIServer' object has no attribute '_oldSIGs'
          self.scgiserver._installSignalHandlers = lambda: None
          self.scgiserver._oldSIGs = []
          self.ready = True
          self.scgiserver.run()
function_tokens: def start ( self ) : # We have to instantiate the server class here because its __init__ # starts a threadpool. If we do it too early, daemonize won't work. from flup . server . scgi import WSGIServer self . scgiserver = WSGIServer ( * self . args , * * self . kwargs ) # TODO: report this bug upstream to flup. # If we don't set _oldSIGs on Windows, we get: #   File "C:\Python24\Lib\site-packages\flup\server\threadedserver.py", #   line 108, in run #     self._restoreSignalHandlers() #   File "C:\Python24\Lib\site-packages\flup\server\threadedserver.py", #   line 156, in _restoreSignalHandlers #     for signum,handler in self._oldSIGs: #   AttributeError: 'WSGIServer' object has no attribute '_oldSIGs' self . scgiserver . _installSignalHandlers = lambda : None self . scgiserver . _oldSIGs = [ ] self . ready = True self . scgiserver . run ( )