title: How to run make_server from the simple_server in python on multiprocess?
body: <p>I have one simple program of wsgi.</p>
  
  <pre><code>from wsgiref.simple_server import make_server
  import time
  
  def application(environ, start_response):
      response_body = 'Hello World'
      status = '200 OK'
  
      response_headers = [('Content-Type', 'text/plain'),
                      ('Content-Length', str(len(response_body)))]
  
      start_response(status, response_headers)
  
      if environ['PATH_INFO'] != '/favicon.ico':
  
          print "Time :", int(time.time())
          if int(time.time()) % 2:
              print "Even"
              time.sleep(10)
          else:
              print "Odd"
      return [response_body]
  
  httpd = make_server('localhost', 8000, application)
  httpd.serve_forever()
  </code></pre>
  
  <p>So as per the code if the <code>timestamp</code> is <code>Even</code> then it will send response after 10 second. But if the <code>timestamp</code> is <code>Odd</code> then it will send response directly without sleep. </p>
  
  <p>So my question is if i will send 2 request and if first request will send the request in <code>Even</code> mode then my second request will be serve after completing first one. </p>
  
  <p>I check the solution and found that 'multiprocess<code>can solve this problem. I set the apache configuration with</code>multiprocess<code>. Then I get the response for</code>Odd<code>without completing</code>Even` request.</p>
  
  <p>I check how to set the <code>multiprocess</code> with <code>make_server</code> method of <code>simple_server</code> module. When I run the <code>python /usr/lib64/python2.7/wsgiref/simple_server.py</code> I get the output and last few lines are</p>
  
  <pre><code>wsgi.errors = &lt;open file '&lt;stderr&gt;', mode 'w' at 0x7f22ba2a1270&gt;
  wsgi.file_wrapper = &lt;class wsgiref.util.FileWrapper at 0x1647600&gt;
  wsgi.input = &lt;socket._fileobject object at 0x1569cd0&gt;
  wsgi.multiprocess = False
  wsgi.multithread = True
  wsgi.run_once = False
  wsgi.url_scheme = 'http'
  wsgi.version = (1, 0)
  </code></pre>
  
  <p>So I was search how to set this <code>make_server</code> multiprocess so make_server can handle more then 1 request if any request is in progress.</p>
  
  <p>Thx in advance.</p>