title: Python HTTP server does not send responses
body: <p>Here have two scripts.One is main script and other one for Server Handler.Through the main script Im calling the Handler.
  Server will start up but won't be able to send responses.
  Please Help me.</p>
  
  <p><strong>Main script:</strong></p>
  
  <pre><code>def start_server(message_queue):
  
      print time.asctime(), "Server Start - %s:%s" % (HOST_NAME, PORT)
      httpd = SocketServer.ThreadingTCPServer((HOST_NAME, PORT), ServerHandler(message_queue))
      httpd.serve_forever()
      print time.asctime(), "Server Stops - %s:%s" % (HOST_NAME, PORT)
  
  
  if __name__ == '__main__':
      logging.basicConfig(filename=LOG_PATH, level=LOG_LEVEL, format='%(asctime)s-%(levelname)s-%(message)s')
  
      queue = Queue()
      process_new = Process(target=start_server, args=(queue,))
      process_new.start()
      queue.put("INSUFFICIENT_CREDIT")
  </code></pre>
  
  <p><strong>Server Handler :</strong></p>
  
  <pre><code>class ServerHandler(SocketServer.ThreadingMixIn,SimpleHTTPServer.SimpleHTTPRequestHandler):
  
      def __init__(self, message_queue):
           self.queue = message_queue
  
  
      def do_POST(self,message_queue):
          message = message_queue.get()
          if message is None:
              print "Test result"
          else:
              "SUCCESS"
  
          self.send_response(200)
          self.end_headers()
  </code></pre>