title: Python HTTP-Server and Threading
body: <p>I tried to create a HTTP-server in Python using Threading:</p>
  <pre><code>from socketserver import ThreadingMixIn
  from http.server import HTTPServer, BaseHTTPRequestHandler
  import time, threading
  
  class ThreadingServer(ThreadingMixIn, HTTPServer):
      pass
  class Handler(BaseHTTPRequestHandler):
      def do_GET(self):
          print(&quot;do&quot;)
          time.sleep(10)
          message =  threading.currentThread().getName()
          self.wfile.write(message)
          self.wfile.write('\n')
  
  if __name__ == &quot;__main__&quot;:
      httpd = ThreadingServer( (host, port), Handler)
      httpd.serve_forever()
  </code></pre>
  <p>The server works well, but if two request are same time, they are executed sequentially.
  So the second request not executed until the first is finished.</p>