Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #67 (defect)

Opened 4 years ago

Last modified 3 years ago

CherryThreadingMixIn not defined (when trying to enable threading mode)

Status: closed (fixed)

Reported by: anonymous Assigned to: rdelon
Priority: normal Milestone: 2.0-final
Component: CherryPy code Keywords:
Cc:

when setting the threading option to 1 I get the following error:

Traceback (most recent call last):

File "D:\downloads\cp2\CherryPy-2.0.0a1\cherrypy\tutorial\cp2_fileupload.py", line 32, in ?

cpg.server.start(configDict=config)

File "C:\Python24\Lib\site-packages\cherrypy\_cpserver.py", line 67, in start

_cphttpserver.start()

File "C:\Python24\Lib\site-packages\cherrypy\_cphttpserver.py", line 41, in start

class MyCherryHTTPServer(CherryThreadingMixIn?,CherryHTTPServer):pass NameError?: global name 'CherryThreadingMixIn' is not defined

It seems to be referenced, but never defined.

Attachments

ticket_67.patch (5.0 kB) - added by japj on 12/29/04 07:56:09.
patch that removes the processPool, threading and forking options

Change History

12/28/04 12:28:42: Modified by rdelon

Well, CP2 won't support a threading server (ie: a new thread gets created for each new request) for now... It only supports thread-pooling.

The right fix for this bug is to remove the "threading", "forking" and "processPool" options from the code.

12/28/04 12:28:51: Modified by rdelon

  • milestone set to 2.0-final.

12/29/04 07:56:09: Modified by japj

  • attachment ticket_67.patch added.

patch that removes the processPool, threading and forking options

02/13/05 08:59:55: Modified by rdelon

  • status changed from new to closed.
  • resolution set to fixed.

Fixed: Got rid of old config options for HTTP server. Only threadPool is supported now

Hosted by WebFaction

Log in as guest/cpguest to create tickets