mercurial/hgweb/server.py
changeset 39834 d1e0b905c59d
parent 39827 a6088d10d5f2
child 39954 8c7ecd32ccce
equal deleted inserted replaced
39833:28626957395a 39834:d1e0b905c59d
   172 
   172 
   173         env[r'wsgi.input'] = self.rfile
   173         env[r'wsgi.input'] = self.rfile
   174         env[r'wsgi.errors'] = _error_logger(self)
   174         env[r'wsgi.errors'] = _error_logger(self)
   175         env[r'wsgi.multithread'] = isinstance(self.server,
   175         env[r'wsgi.multithread'] = isinstance(self.server,
   176                                              socketserver.ThreadingMixIn)
   176                                              socketserver.ThreadingMixIn)
   177         env[r'wsgi.multiprocess'] = isinstance(self.server,
   177         if util.safehasattr(socketserver, 'ForkingMixIn'):
   178                                               socketserver.ForkingMixIn)
   178             env[r'wsgi.multiprocess'] = isinstance(self.server,
       
   179                                                    socketserver.ForkingMixIn)
       
   180         else:
       
   181             env[r'wsgi.multiprocess'] = False
       
   182 
   179         env[r'wsgi.run_once'] = 0
   183         env[r'wsgi.run_once'] = 0
   180 
   184 
   181         wsgiref.validate.check_environ(env)
   185         wsgiref.validate.check_environ(env)
   182 
   186 
   183         self.saved_status = None
   187         self.saved_status = None